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,
/* private fields */
}Expand description
Runtime metadata about one admin-registered model.
Fields§
§admin_name: &'static str§display_name: &'static str§singular_name: &'static str§table: &'static strSQL table name. For user-registered models this is <M as Model>::TABLE;
for the synthetic core User entry it’s "rustio_users".
fields: &'static [AdminField]§core: booltrue only for framework-owned entries (currently just User).
External tools key off this to refuse destructive plans against
framework infrastructure.
Auto 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> 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