pub enum ComparisonOperator {
Show 13 variants
Eq,
Ne,
Le,
Lt,
Ge,
Gt,
NotNull,
Null,
Contains,
NotContains,
BeginsWith,
In,
Between,
}Expand description
Comparison operator for legacy Condition filters.
These are used with the legacy ScanFilter, QueryFilter, KeyConditions,
and Expected parameters. Modern applications should use expression-based
APIs (FilterExpression, KeyConditionExpression, ConditionExpression).
Variants§
Eq
Equal to.
Ne
Not equal to.
Le
Less than or equal to.
Lt
Less than.
Ge
Greater than or equal to.
Gt
Greater than.
NotNull
Attribute does not exist.
Null
Attribute exists (with any value, including null).
Contains
Attribute value contains the specified substring or set member.
NotContains
Attribute value does not contain the specified substring or set member.
BeginsWith
Attribute value begins with the specified substring.
In
Attribute value is a member of the specified list.
Between
Attribute value is between two values (inclusive).
Implementations§
Trait Implementations§
Source§impl Clone for ComparisonOperator
impl Clone for ComparisonOperator
Source§fn clone(&self) -> ComparisonOperator
fn clone(&self) -> ComparisonOperator
Returns a duplicate 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 Debug for ComparisonOperator
impl Debug for ComparisonOperator
Source§impl<'de> Deserialize<'de> for ComparisonOperator
impl<'de> Deserialize<'de> for ComparisonOperator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ComparisonOperator
impl Display for ComparisonOperator
Source§impl Hash for ComparisonOperator
impl Hash for ComparisonOperator
Source§impl PartialEq for ComparisonOperator
impl PartialEq for ComparisonOperator
Source§impl Serialize for ComparisonOperator
impl Serialize for ComparisonOperator
impl Eq for ComparisonOperator
impl StructuralPartialEq for ComparisonOperator
Auto Trait Implementations§
impl Freeze for ComparisonOperator
impl RefUnwindSafe for ComparisonOperator
impl Send for ComparisonOperator
impl Sync for ComparisonOperator
impl Unpin for ComparisonOperator
impl UnsafeUnpin for ComparisonOperator
impl UnwindSafe for ComparisonOperator
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