Struct scylladb_parse::BatchStatementBuilder
source · [−]pub struct BatchStatementBuilder { /* private fields */ }Expand description
Builder for BatchStatement.
Implementations
sourceimpl BatchStatementBuilder
impl BatchStatementBuilder
pub fn kind(&mut self, value: BatchKind) -> &mut Self
pub fn using(&mut self, value: Vec<UpdateParameter>) -> &mut Self
pub fn statements(&mut self, value: Vec<ModificationStatement>) -> &mut Self
sourcepub fn build(&self) -> Result<BatchStatement, BatchStatementBuilderError>
pub fn build(&self) -> Result<BatchStatement, BatchStatementBuilderError>
sourceimpl BatchStatementBuilder
impl BatchStatementBuilder
pub fn parse_statement(&mut self, statement: &str) -> Result<&mut Self>
pub fn statement(&mut self, statement: ModificationStatement) -> &mut Self
pub fn insert(&mut self, statement: InsertStatement) -> &mut Self
pub fn update(&mut self, statement: UpdateStatement) -> &mut Self
pub fn delete(&mut self, statement: DeleteStatement) -> &mut Self
Trait Implementations
sourceimpl Clone for BatchStatementBuilder
impl Clone for BatchStatementBuilder
sourcefn clone(&self) -> BatchStatementBuilder
fn clone(&self) -> BatchStatementBuilder
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 BatchStatementBuilder
impl Send for BatchStatementBuilder
impl Sync for BatchStatementBuilder
impl Unpin for BatchStatementBuilder
impl UnwindSafe for BatchStatementBuilder
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