pub struct InsertStatementBuilder { /* private fields */ }
Expand description
Builder for InsertStatement
.
Implementations§
Source§impl InsertStatementBuilder
impl InsertStatementBuilder
pub fn table<VALUE: Into<KeyspaceQualifiedName>>( &mut self, value: VALUE, ) -> &mut Self
pub fn kind<VALUE: Into<InsertKind>>(&mut self, value: VALUE) -> &mut Self
pub fn set_if_not_exists(&mut self, value: bool) -> &mut Self
pub fn using(&mut self, value: Vec<UpdateParameter>) -> &mut Self
Sourcepub fn build(&self) -> Result<InsertStatement, InsertStatementBuilderError>
pub fn build(&self) -> Result<InsertStatement, InsertStatementBuilderError>
Source§impl InsertStatementBuilder
impl InsertStatementBuilder
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 InsertStatementBuilder
impl Clone for InsertStatementBuilder
Source§fn clone(&self) -> InsertStatementBuilder
fn clone(&self) -> InsertStatementBuilder
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 InsertStatementBuilder
impl RefUnwindSafe for InsertStatementBuilder
impl Send for InsertStatementBuilder
impl Sync for InsertStatementBuilder
impl Unpin for InsertStatementBuilder
impl UnwindSafe for InsertStatementBuilder
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