Skip to content

How do you use define nested structs? #31

Answered by trevyn
aidalgol asked this question in Q&A
Discussion options

You must be logged in to vote

Doing #[derive(serde::Serialize)] on Album could get you closer, but that still might not be exactly what you want.

There isn’t great support for automating foreign keys etc. yet, so if you want those to be two separate cross-referenced tables, you’ll need to treat them as separate flat tables and add rowid references manually.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aidalgol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants