Struct scylladb_parse::BatchStatement
source · [−]pub struct BatchStatement {
pub kind: BatchKind,
pub using: Option<Vec<UpdateParameter>>,
pub statements: Vec<ModificationStatement>,
}
Fields
kind: BatchKind
using: Option<Vec<UpdateParameter>>
statements: Vec<ModificationStatement>
Implementations
sourceimpl BatchStatement
impl BatchStatement
pub fn add_parse_statement(&mut self, statement: &str) -> Result<()>
pub fn add_statement(&mut self, statement: ModificationStatement)
pub fn parse_statement(self, statement: &str) -> Result<Self>
pub fn statement(self, statement: ModificationStatement) -> Self
pub fn insert(self, statement: InsertStatement) -> Self
pub fn update(self, statement: UpdateStatement) -> Self
pub fn delete(self, statement: DeleteStatement) -> Self
Trait Implementations
sourceimpl Clone for BatchStatement
impl Clone for BatchStatement
sourcefn clone(&self) -> BatchStatement
fn clone(&self) -> BatchStatement
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
sourceimpl<'a> CustomToTokens<'a> for BatchStatement
impl<'a> CustomToTokens<'a> for BatchStatement
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl Debug for BatchStatement
impl Debug for BatchStatement
sourceimpl Display for BatchStatement
impl Display for BatchStatement
sourceimpl From<BatchStatement> for DataManipulationStatement
impl From<BatchStatement> for DataManipulationStatement
sourcefn from(original: BatchStatement) -> DataManipulationStatement
fn from(original: BatchStatement) -> DataManipulationStatement
Converts to this type from the input type.
sourceimpl From<BatchStatement> for Statement
impl From<BatchStatement> for Statement
sourcefn from(v: BatchStatement) -> Self
fn from(v: BatchStatement) -> Self
Converts to this type from the input type.
sourceimpl FromStr for BatchStatement
impl FromStr for BatchStatement
sourceimpl Parse for BatchStatement
impl Parse for BatchStatement
type Output = BatchStatement
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
sourceimpl PartialEq<BatchStatement> for BatchStatement
impl PartialEq<BatchStatement> for BatchStatement
sourcefn eq(&self, other: &BatchStatement) -> bool
fn eq(&self, other: &BatchStatement) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BatchStatement) -> bool
fn ne(&self, other: &BatchStatement) -> bool
This method tests for !=
.
sourceimpl ToTokens for BatchStatement
impl ToTokens for BatchStatement
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Write self
to the given TokenStream
. Read more
sourcefn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert self
directly into a TokenStream
object. Read more
sourcefn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
Convert self
directly into a TokenStream
object. Read more
sourceimpl TryFrom<TaggedBatchStatement> for BatchStatement
impl TryFrom<TaggedBatchStatement> for BatchStatement
sourceimpl TryInto<BatchStatement> for Statement
impl TryInto<BatchStatement> for Statement
impl Eq for BatchStatement
impl StructuralEq for BatchStatement
impl StructuralPartialEq for BatchStatement
Auto Trait Implementations
impl RefUnwindSafe for BatchStatement
impl Send for BatchStatement
impl Sync for BatchStatement
impl Unpin for BatchStatement
impl UnwindSafe for BatchStatement
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more