pub struct CreateTable {
pub table: TableId,
pub columns: Vec<ColumnDef>,
pub primary_key: Option<Box<Expr>>,
}Fields§
§table: TableIdName of the table
columns: Vec<ColumnDef>Column definitions
primary_key: Option<Box<Expr>>Primary key clause
Trait Implementations§
Source§impl Clone for CreateTable
impl Clone for CreateTable
Source§fn clone(&self) -> CreateTable
fn clone(&self) -> CreateTable
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 CreateTable
impl Debug for CreateTable
Source§impl From<CreateTable> for Statement
impl From<CreateTable> for Statement
Source§fn from(value: CreateTable) -> Self
fn from(value: CreateTable) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateTable
impl RefUnwindSafe for CreateTable
impl Send for CreateTable
impl Sync for CreateTable
impl Unpin for CreateTable
impl UnwindSafe for CreateTable
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