#[derive(CmsAdmin)]
{
// Attributes available to this derive:
#[cms_admin]
#[field]
}
Expand description
#[derive(CmsAdmin)] — an admin editor (list, search, add, edit,
delete) for a #[derive(Model)] type, at /cms-admin/x/<slug>.
Fields to edit carry the same #[field(widget = …, label = "…")]
attributes as page types; the struct needs Default and an
impl rustango_cms::CmsAdminOverrides (empty is fine).