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
pub fn get_pk_field(&self) -> &Field
pub fn resolved_name(&self) -> &'static str
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