pub struct Model {
pub name: String,
pub db_name: String,
pub fields: Vec<Field>,
pub primary_key: PrimaryKey,
pub indexes: Vec<Index>,
pub unique_constraints: Vec<UniqueConstraint>,
}Expand description
A validated model definition.
Fields§
§name: String§db_name: String§fields: Vec<Field>§primary_key: PrimaryKey§indexes: Vec<Index>§unique_constraints: Vec<UniqueConstraint>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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