pub struct CreateTableOp {
pub name: String,
pub columns: Vec<ColumnDefinition>,
pub constraints: Vec<TableConstraint>,
pub if_not_exists: bool,
}Expand description
Create table operation.
Fields§
§name: StringTable name.
columns: Vec<ColumnDefinition>Column definitions.
constraints: Vec<TableConstraint>Table-level constraints.
if_not_exists: boolWhether to use IF NOT EXISTS.
Trait Implementations§
Source§impl Clone for CreateTableOp
impl Clone for CreateTableOp
Source§fn clone(&self) -> CreateTableOp
fn clone(&self) -> CreateTableOp
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 moreSource§impl Debug for CreateTableOp
impl Debug for CreateTableOp
Source§impl From<CreateTableOp> for Operation
impl From<CreateTableOp> for Operation
Source§fn from(op: CreateTableOp) -> Self
fn from(op: CreateTableOp) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CreateTableOp
impl PartialEq for CreateTableOp
impl StructuralPartialEq for CreateTableOp
Auto Trait Implementations§
impl Freeze for CreateTableOp
impl RefUnwindSafe for CreateTableOp
impl Send for CreateTableOp
impl Sync for CreateTableOp
impl Unpin for CreateTableOp
impl UnwindSafe for CreateTableOp
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