pub struct SchemaDef {
pub name: String,
pub namespace: Option<String>,
pub columns: Vec<ColumnDef>,
pub constraints: Option<Vec<ConstraintDef>>,
pub indexes: Option<Vec<IndexDef>>,
pub like_tables: Option<Vec<LikeTableDef>>,
}Expand description
Complete table definition (for CREATE TABLE).
Fields§
§name: String§namespace: Option<String>§columns: Vec<ColumnDef>§constraints: Option<Vec<ConstraintDef>>§indexes: Option<Vec<IndexDef>>§like_tables: Option<Vec<LikeTableDef>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchemaDef
impl !RefUnwindSafe for SchemaDef
impl Send for SchemaDef
impl Sync for SchemaDef
impl Unpin for SchemaDef
impl UnsafeUnpin for SchemaDef
impl !UnwindSafe for SchemaDef
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