Struct dynamodb_expression::operand::Operand
source · 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§
source§impl PartialEq for Operand
impl PartialEq for Operand
impl Eq for Operand
impl StructuralEq for Operand
impl StructuralPartialEq for Operand
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.