pub struct CreateIndexStatementBuilder { /* private fields */ }
Expand description
Builder for CreateIndexStatement
.
Implementations§
Source§impl CreateIndexStatementBuilder
impl CreateIndexStatementBuilder
pub fn set_custom(&mut self, value: bool) -> &mut Self
pub fn set_if_not_exists(&mut self, value: bool) -> &mut Self
pub fn name<VALUE: Into<Name>>(&mut self, value: VALUE) -> &mut Self
pub fn table<VALUE: Into<KeyspaceQualifiedName>>( &mut self, value: VALUE, ) -> &mut Self
pub fn index_id<VALUE: Into<IndexIdentifier>>( &mut self, value: VALUE, ) -> &mut Self
pub fn using(&mut self, value: IndexClass) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<CreateIndexStatement, CreateIndexStatementBuilderError>
pub fn build( &self, ) -> Result<CreateIndexStatement, CreateIndexStatementBuilderError>
Source§impl CreateIndexStatementBuilder
impl CreateIndexStatementBuilder
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)
.
pub fn custom(&mut self) -> &mut Self
Trait Implementations§
Source§impl Clone for CreateIndexStatementBuilder
impl Clone for CreateIndexStatementBuilder
Source§fn clone(&self) -> CreateIndexStatementBuilder
fn clone(&self) -> CreateIndexStatementBuilder
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 CreateIndexStatementBuilder
impl RefUnwindSafe for CreateIndexStatementBuilder
impl Send for CreateIndexStatementBuilder
impl Sync for CreateIndexStatementBuilder
impl Unpin for CreateIndexStatementBuilder
impl UnwindSafe for CreateIndexStatementBuilder
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