Nested structure from sqlx library

How to create nested structure from sqlx library.

Example : master details.