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>,
pub strict: bool,
pub temporary: bool,
}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>§strict: bool§temporary: boolTrait 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 (const: unstable) · 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more