#[derive(Partial)]
{
// Attributes available to this derive:
#[partial]
}
Expand description
Derive macro for typed partial selects: a struct holding a subset of a model’s
columns, read with QueryBuilder::select_as::<Self>().
Every field must match a model column by name and type (checked at compile time).
ⓘ
#[derive(Partial)]
#[partial(model = User)]
struct UserLite {
id: FieldUuid,
email: FieldEmail,
}