Struct scylladb_parse::InsertStatementBuilder
source · [−]pub struct InsertStatementBuilder { /* private fields */ }Expand description
Builder for InsertStatement.
Implementations
sourceimpl 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>
sourceimpl 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
sourceimpl Clone for InsertStatementBuilder
impl Clone for InsertStatementBuilder
sourcefn clone(&self) -> InsertStatementBuilder
fn clone(&self) -> InsertStatementBuilder
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 InsertStatementBuilder
impl Send for InsertStatementBuilder
impl Sync for InsertStatementBuilder
impl Unpin for InsertStatementBuilder
impl UnwindSafe for InsertStatementBuilder
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