zino_derive

Derive Macro Entity

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

Derives the Entity trait.

ยงAttributes on struct fields

  • #[schema(primary_key)]: The primary_key annotation is used to mark a column as the primary key.