pub struct Entity {
pub def: Def,
pub store: &'static str,
pub primary_key: &'static str,
pub name: Option<&'static str>,
pub indexes: &'static [Index],
pub fields: FieldList,
pub ty: Type,
}Expand description
Entity
Fields§
§def: Def§store: &'static str§primary_key: &'static str§name: Option<&'static str>§indexes: &'static [Index]§fields: FieldList§ty: TypeImplementations§
Source§impl Entity
impl Entity
Sourcepub fn get_pk_field(&self) -> Option<&Field>
pub fn get_pk_field(&self) -> Option<&Field>
Return the primary key field if it exists on the entity.
Sourcepub fn resolved_name(&self) -> &'static str
pub fn resolved_name(&self) -> &'static str
Resolve the entity name used for schema identity.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
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