Derive Macro FromExpr

Source
#[derive(FromExpr)]
{
    // Attributes available to this derive:
    #[rust_query]
}
Expand description

Use in combination with #[rust_query(From = Thing)] to specify which tables this struct should implement FromExpr for.

The implementation of FromExpr will initialize every field from the column with the corresponding name. It is also possible to change the type of each field as long as the type implements FromExpr.