struct EntityCtx {
pascal_name: String,
snake_name: String,
table: String,
primary_key: String,
fields: Vec<FieldCtx>,
relations: Vec<RelationCtx>,
has_auto_fields: bool,
auto_field_names: String,
}Expand description
Per-entity data passed into Tera templates.
Fields§
§pascal_name: String§snake_name: String§table: String§primary_key: String§fields: Vec<FieldCtx>§relations: Vec<RelationCtx>§has_auto_fields: bool§auto_field_names: StringQuoted comma-separated names of auto fields for Omit<>.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntityCtx
impl RefUnwindSafe for EntityCtx
impl Send for EntityCtx
impl Sync for EntityCtx
impl Unpin for EntityCtx
impl UnwindSafe for EntityCtx
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