Struct cql3_parser::create_table::CreateTable
source · [−]pub struct CreateTable {
pub if_not_exists: bool,
pub name: FQName,
pub columns: Vec<ColumnDefinition>,
pub key: Option<PrimaryKey>,
pub with_clause: Vec<WithItem>,
}Expand description
The data for a Create table statement
Fields
if_not_exists: boolonly create if the table does not exist
name: FQNamethe name of the table
columns: Vec<ColumnDefinition>the column definitions.
key: Option<PrimaryKey>the primary key if not specified in the column definitions.
with_clause: Vec<WithItem>the list of WITH options.
Trait Implementations
sourceimpl Clone for CreateTable
impl Clone for CreateTable
sourcefn clone(&self) -> CreateTable
fn clone(&self) -> CreateTable
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CreateTable
impl Debug for CreateTable
sourceimpl Display for CreateTable
impl Display for CreateTable
sourceimpl PartialEq<CreateTable> for CreateTable
impl PartialEq<CreateTable> for CreateTable
sourcefn eq(&self, other: &CreateTable) -> bool
fn eq(&self, other: &CreateTable) -> bool
impl StructuralPartialEq for CreateTable
Auto Trait Implementations
impl RefUnwindSafe for CreateTable
impl Send for CreateTable
impl Sync for CreateTable
impl Unpin for CreateTable
impl UnwindSafe for CreateTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more