pub struct CmsAdminMeta {
pub slug: &'static str,
pub label: &'static str,
pub singular: &'static str,
pub icon: Option<&'static str>,
pub section: SidebarSection,
pub sort_order: i32,
pub list: &'static [(&'static str, &'static str)],
pub searchable: bool,
pub per_page: i64,
pub permission_resource: &'static str,
}Expand description
Static description of one model’s editor, built by the derive.
Fields§
§slug: &'static strURL slug: the page is /cms-admin/x/<slug>.
label: &'static strPlural label, for the sidebar and the list heading.
singular: &'static strSingular label, for “Add …” and “Edit …”.
icon: Option<&'static str>Material Symbols icon name for the sidebar.
section: SidebarSectionSidebar section.
sort_order: i32Order within the section.
list: &'static [(&'static str, &'static str)]List columns as (field, header). The first links to the form.
searchable: boolWhether the list shows a search box.
per_page: i64Rows per list page.
permission_resource: &'static strCodename prefix in the role matrix.
Trait Implementations§
Source§impl Clone for CmsAdminMeta
impl Clone for CmsAdminMeta
impl Copy for CmsAdminMeta
Auto Trait Implementations§
impl Forget for CmsAdminMeta
impl Freeze for CmsAdminMeta
impl RefUnwindSafe for CmsAdminMeta
impl Send for CmsAdminMeta
impl Sync for CmsAdminMeta
impl Unpin for CmsAdminMeta
impl UnsafeUnpin for CmsAdminMeta
impl UnwindSafe for CmsAdminMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.