pub struct CreateTableStatement {
pub table: String,
pub columns: Vec<Column>,
pub constraints: Vec<TableConstraint>,
}Fields§
§table: String§columns: Vec<Column>§constraints: Vec<TableConstraint>Implementations§
Source§impl CreateTableStatement
impl CreateTableStatement
pub fn new( table: impl AsRef<str>, columns: &[Column], constraints: &[TableConstraint], ) -> Self
pub fn table_name(entity: &str, naming: &StatementNaming) -> String
pub fn column_name(field: &str, naming: &StatementNaming) -> String
Trait Implementations§
Auto Trait Implementations§
impl Forget for CreateTableStatement
impl Freeze for CreateTableStatement
impl RefUnwindSafe for CreateTableStatement
impl Send for CreateTableStatement
impl Sync for CreateTableStatement
impl Unpin for CreateTableStatement
impl UnsafeUnpin for CreateTableStatement
impl UnwindSafe for CreateTableStatement
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