pub struct CreateTableStatementBuilder { /* private fields */ }Expand description
Builder for CreateTableStatement.
Implementations
sourceimpl CreateTableStatementBuilder
impl CreateTableStatementBuilder
pub fn set_if_not_exists(&mut self, value: bool) -> &mut Self
pub fn table<VALUE: Into<KeyspaceQualifiedName>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn columns(&mut self, value: Vec<ColumnDefinition>) -> &mut Self
pub fn primary_key<VALUE: Into<PrimaryKey>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn options(&mut self, value: TableOpts) -> &mut Self
sourcepub fn build(
&self
) -> Result<CreateTableStatement, CreateTableStatementBuilderError>
pub fn build(
&self
) -> Result<CreateTableStatement, CreateTableStatementBuilderError>
sourceimpl CreateTableStatementBuilder
impl CreateTableStatementBuilder
sourcepub fn if_not_exists(&mut self) -> &mut Self
pub fn if_not_exists(&mut self) -> &mut Self
Set IF NOT EXISTS on the statement.
To undo this, use set_if_not_exists(false).
Trait Implementations
sourceimpl Clone for CreateTableStatementBuilder
impl Clone for CreateTableStatementBuilder
sourcefn clone(&self) -> CreateTableStatementBuilder
fn clone(&self) -> CreateTableStatementBuilder
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 more
Auto Trait Implementations
impl RefUnwindSafe for CreateTableStatementBuilder
impl Send for CreateTableStatementBuilder
impl Sync for CreateTableStatementBuilder
impl Unpin for CreateTableStatementBuilder
impl UnwindSafe for CreateTableStatementBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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