pub struct AdminEntry {
pub admin_name: &'static str,
pub display_name: &'static str,
pub singular_name: &'static str,
pub table: &'static str,
pub fields: &'static [AdminField],
pub core: bool,
}Expand description
Metadata about one registered admin model.
Carries everything the admin index page, the router registration,
and the schema exporter need — collected by Admin::model from the
type’s AdminModel / Model impls at registration time.
core marks infrastructure models (currently just User) that the
schema needs to describe but that the admin router does not
expose as CRUD pages. Core models appear in rustio.schema.json
with "core": true but have no /admin/<name> routes.
Fields§
§admin_name: &'static str§display_name: &'static str§singular_name: &'static str§table: &'static str§fields: &'static [AdminField]§core: boolTrait Implementations§
Source§impl Clone for AdminEntry
impl Clone for AdminEntry
Source§fn clone(&self) -> AdminEntry
fn clone(&self) -> AdminEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AdminEntry
impl RefUnwindSafe for AdminEntry
impl Send for AdminEntry
impl Sync for AdminEntry
impl Unpin for AdminEntry
impl UnsafeUnpin for AdminEntry
impl UnwindSafe for AdminEntry
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 more