pub struct CreateKeyspaceStatementBuilder { /* private fields */ }
Expand description
Builder for CreateKeyspaceStatement
.
Implementations§
Source§impl CreateKeyspaceStatementBuilder
impl CreateKeyspaceStatementBuilder
pub fn set_if_not_exists(&mut self, value: bool) -> &mut Self
pub fn keyspace<VALUE: Into<Name>>(&mut self, value: VALUE) -> &mut Self
pub fn options(&mut self, value: KeyspaceOpts) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<CreateKeyspaceStatement, CreateKeyspaceStatementBuilderError>
pub fn build( &self, ) -> Result<CreateKeyspaceStatement, CreateKeyspaceStatementBuilderError>
Source§impl CreateKeyspaceStatementBuilder
impl CreateKeyspaceStatementBuilder
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§
Source§impl Clone for CreateKeyspaceStatementBuilder
impl Clone for CreateKeyspaceStatementBuilder
Source§fn clone(&self) -> CreateKeyspaceStatementBuilder
fn clone(&self) -> CreateKeyspaceStatementBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateKeyspaceStatementBuilder
impl RefUnwindSafe for CreateKeyspaceStatementBuilder
impl Send for CreateKeyspaceStatementBuilder
impl Sync for CreateKeyspaceStatementBuilder
impl Unpin for CreateKeyspaceStatementBuilder
impl UnwindSafe for CreateKeyspaceStatementBuilder
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