Enum dynamodb_expression::condition::Condition
source · pub enum Condition {
AttributeExists(AttributeExists),
AttributeNotExists(AttributeNotExists),
AttributeType(AttributeType),
BeginsWith(BeginsWith),
Between(Between),
Contains(Contains),
In(In),
Not(Not),
And(And),
Or(Or),
Comparison(Comparison),
Parenthetical(Parenthetical),
}
Expand description
Represents a DynamoDB condition or filter expression.
You can construct an instance of this via its From
implementations.
Variants§
AttributeExists(AttributeExists)
AttributeNotExists(AttributeNotExists)
AttributeType(AttributeType)
BeginsWith(BeginsWith)
Between(Between)
Contains(Contains)
In(In)
Not(Not)
And(And)
Or(Or)
Comparison(Comparison)
Parenthetical(Parenthetical)
Implementations§
source§impl Condition
impl Condition
sourcepub fn and<R>(self, right: R) -> Selfwhere
R: Into<Condition>,
pub fn and<R>(self, right: R) -> Selfwhere R: Into<Condition>,
A logical AND
operation
sourcepub fn or<R>(self, right: R) -> Selfwhere
R: Into<Condition>,
pub fn or<R>(self, right: R) -> Selfwhere R: Into<Condition>,
A logical OR
operation
sourcepub fn not(self) -> Self
pub fn not(self) -> Self
A logical NOT
operation
sourcepub fn parenthesize(self) -> Self
pub fn parenthesize(self) -> Self
Wraps a condition in parentheses.
For example, a < b AND c > d
becomes (a < b AND c > d)
.
Trait Implementations§
source§impl From<AttributeExists> for Condition
impl From<AttributeExists> for Condition
source§fn from(condition: AttributeExists) -> Self
fn from(condition: AttributeExists) -> Self
Converts to this type from the input type.
source§impl From<AttributeNotExists> for Condition
impl From<AttributeNotExists> for Condition
source§fn from(condition: AttributeNotExists) -> Self
fn from(condition: AttributeNotExists) -> Self
Converts to this type from the input type.
source§impl From<AttributeType> for Condition
impl From<AttributeType> for Condition
source§fn from(condition: AttributeType) -> Self
fn from(condition: AttributeType) -> Self
Converts to this type from the input type.
source§impl From<BeginsWith> for Condition
impl From<BeginsWith> for Condition
source§fn from(condition: BeginsWith) -> Self
fn from(condition: BeginsWith) -> Self
Converts to this type from the input type.
source§impl From<Comparison> for Condition
impl From<Comparison> for Condition
source§fn from(condition: Comparison) -> Self
fn from(condition: Comparison) -> Self
Converts to this type from the input type.
source§impl From<Parenthetical> for Condition
impl From<Parenthetical> for Condition
source§fn from(condition: Parenthetical) -> Self
fn from(condition: Parenthetical) -> Self
Converts to this type from the input type.
source§impl PartialEq for Condition
impl PartialEq for Condition
impl Eq for Condition
impl StructuralEq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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.