pub struct AdminRecord {
pub id: Option<i64>,
}Expand description
Dummy record type for admin panel CRUD operations
This type exists solely to satisfy the <M: Model> generic constraint
in AdminDatabase methods. The admin panel operates on dynamic data
(serde_json::Value), not statically-typed models.
Fields§
§id: Option<i64>Trait Implementations§
Source§impl Clone for AdminRecord
impl Clone for AdminRecord
Source§fn clone(&self) -> AdminRecord
fn clone(&self) -> AdminRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdminRecord
impl Debug for AdminRecord
Source§impl<'de> Deserialize<'de> for AdminRecord
impl<'de> Deserialize<'de> for AdminRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Model for AdminRecord
impl Model for AdminRecord
Source§type PrimaryKey = i64
type PrimaryKey = i64
The primary key type
Source§type Fields = AdminRecordFields
type Fields = AdminRecordFields
Type-safe field selector Read more
Source§fn table_name() -> &'static str
fn table_name() -> &'static str
Get the table name
Source§fn new_fields() -> Self::Fields
fn new_fields() -> Self::Fields
Create a new field selector instance Read more
Source§fn primary_key(&self) -> Option<Self::PrimaryKey>
fn primary_key(&self) -> Option<Self::PrimaryKey>
Get the primary key value Read more
Source§fn set_primary_key(&mut self, pk: Self::PrimaryKey)
fn set_primary_key(&mut self, pk: Self::PrimaryKey)
Set the primary key value
Source§fn primary_key_field() -> &'static str
fn primary_key_field() -> &'static str
Get the primary key field name
Source§fn composite_primary_key() -> Option<CompositePrimaryKey>
fn composite_primary_key() -> Option<CompositePrimaryKey>
Get composite primary key definition if this model uses composite PK Read more
Source§fn get_composite_pk_values(&self) -> HashMap<String, PkValue>
fn get_composite_pk_values(&self) -> HashMap<String, PkValue>
Get composite primary key values for this instance Read more
Source§fn relationship_metadata() -> Vec<RelationInfo>
fn relationship_metadata() -> Vec<RelationInfo>
Get relationship metadata for inspection Read more
Source§fn constraint_metadata() -> Vec<ConstraintInfo>
fn constraint_metadata() -> Vec<ConstraintInfo>
Get constraint metadata for inspection Read more
Source§fn objects() -> Manager<Self>where
Self: Sized,
fn objects() -> Manager<Self>where
Self: Sized,
Django-style objects manager accessor Read more
Auto Trait Implementations§
impl Freeze for AdminRecord
impl RefUnwindSafe for AdminRecord
impl Send for AdminRecord
impl Sync for AdminRecord
impl Unpin for AdminRecord
impl UnwindSafe for AdminRecord
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