You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to be able to fix the possibility of storing a vector of structs that derive the Table procedural macro:
#[derive(Table)]#[table_name = "orders"]pubstructOrder{id:usize,user:User,// one-to-one relationshipproducts:Vec<Product>,// one-to-many relationship - populates from based on junction table (gets from macro attribute "table_name" and combines them for example, orders_products)total_cost:f64,}
As you can see here when we define a field called products and add a vector of Product. It will complain about:
- doesn't satisfy `syn::Type: ToString` or `syn::Type: std::fmt::Display`
We need to be able to support this in the njord_derive library.
The text was updated successfully, but these errors were encountered:
We need to be able to fix the possibility of storing a vector of structs that derive the
Table
procedural macro:As you can see here when we define a field called
products
and add a vector ofProduct
. It will complain about:We need to be able to support this in the njord_derive library.
The text was updated successfully, but these errors were encountered: