pub enum BatchStatement<'a> {
Query {
text: Cow<'a, str>,
},
Prepared {
id: Cow<'a, [u8]>,
},
}
Variants§
Trait Implementations§
Source§impl<'a> Clone for BatchStatement<'a>
impl<'a> Clone for BatchStatement<'a>
Source§fn clone(&self) -> BatchStatement<'a>
fn clone(&self) -> BatchStatement<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for BatchStatement<'a>
impl<'a> Debug for BatchStatement<'a>
Source§impl<'s, 'b> From<&'s BatchStatement<'b>> for BatchStatement<'s>
impl<'s, 'b> From<&'s BatchStatement<'b>> for BatchStatement<'s>
Source§fn from(value: &'s BatchStatement<'_>) -> BatchStatement<'s>
fn from(value: &'s BatchStatement<'_>) -> BatchStatement<'s>
Converts to this type from the input type.
Source§impl<'a: 'b, 'b> From<&'a BatchStatement> for BatchStatement<'b>
impl<'a: 'b, 'b> From<&'a BatchStatement> for BatchStatement<'b>
Source§fn from(val: &'a BatchStatement) -> Self
fn from(val: &'a BatchStatement) -> Self
Converts to this type from the input type.
Source§impl<'a> Ord for BatchStatement<'a>
impl<'a> Ord for BatchStatement<'a>
Source§fn cmp(&self, other: &BatchStatement<'a>) -> Ordering
fn cmp(&self, other: &BatchStatement<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for BatchStatement<'a>
impl<'a> PartialEq for BatchStatement<'a>
Source§impl<'a> PartialOrd for BatchStatement<'a>
impl<'a> PartialOrd for BatchStatement<'a>
impl<'a> Eq for BatchStatement<'a>
impl<'a> StructuralPartialEq for BatchStatement<'a>
Auto Trait Implementations§
impl<'a> Freeze for BatchStatement<'a>
impl<'a> RefUnwindSafe for BatchStatement<'a>
impl<'a> Send for BatchStatement<'a>
impl<'a> Sync for BatchStatement<'a>
impl<'a> Unpin for BatchStatement<'a>
impl<'a> UnwindSafe for BatchStatement<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more