pub struct Operand { /* private fields */ }
Expand description
Represents a part of a DynamoDB comparison.
You can use Operand::from
to construct an instance from any of these:
Implementations§
Source§impl Operand
impl Operand
Sourcepub fn equal<T>(self, right: T) -> Condition
pub fn equal<T>(self, right: T) -> Condition
Check if the value of this operand is equal to the given value.
Sourcepub fn not_equal<T>(self, right: T) -> Condition
pub fn not_equal<T>(self, right: T) -> Condition
Check if the value of this operand is not equal to the given value.
Sourcepub fn greater_than<T>(self, right: T) -> Condition
pub fn greater_than<T>(self, right: T) -> Condition
Check if the value of this operand is greater than the given value.
Sourcepub fn greater_than_or_equal<T>(self, right: T) -> Condition
pub fn greater_than_or_equal<T>(self, right: T) -> Condition
Check if the value of this operand is greater than or equal to the given value.
Sourcepub fn less_than<T>(self, right: T) -> Condition
pub fn less_than<T>(self, right: T) -> Condition
Check if the value of this operand is less than the given value.
Sourcepub fn less_than_or_equal<T>(self, right: T) -> Condition
pub fn less_than_or_equal<T>(self, right: T) -> Condition
Check if the value of this operand is less than or equal to the given value.
Sourcepub fn between<L, U>(self, lower: L, upper: U) -> Condition
pub fn between<L, U>(self, lower: L, upper: U) -> Condition
self BETWEEN b AND c
- true if self
is greater than or equal to b
, and less than or equal to c
.
Trait Implementations§
impl Eq for Operand
impl StructuralPartialEq for Operand
Auto Trait Implementations§
impl Freeze for Operand
impl RefUnwindSafe for Operand
impl Send for Operand
impl Sync for Operand
impl Unpin for Operand
impl UnwindSafe for Operand
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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 moreCreates a shared type from an unshared type.