pub struct CreateTableStmt {
pub name: String,
pub columns: Vec<ColumnSpec>,
pub primary_key: Vec<String>,
pub if_not_exists: bool,
pub check_constraints: Vec<TableCheckConstraint>,
pub foreign_keys: Vec<ForeignKeyDef>,
pub unique_indices: Vec<UniqueIndexDef>,
}Fields§
§name: String§columns: Vec<ColumnSpec>§primary_key: Vec<String>§if_not_exists: bool§check_constraints: Vec<TableCheckConstraint>§foreign_keys: Vec<ForeignKeyDef>§unique_indices: Vec<UniqueIndexDef>Trait Implementations§
Source§impl Clone for CreateTableStmt
impl Clone for CreateTableStmt
Source§fn clone(&self) -> CreateTableStmt
fn clone(&self) -> CreateTableStmt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateTableStmt
impl RefUnwindSafe for CreateTableStmt
impl Send for CreateTableStmt
impl Sync for CreateTableStmt
impl Unpin for CreateTableStmt
impl UnsafeUnpin for CreateTableStmt
impl UnwindSafe for CreateTableStmt
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