pub enum Expression {
Comparison(String, Comparator, String),
Between(String, String, String),
In(String, Vec<String>),
Function(Function),
And(Box<Expression>, Box<Expression>),
Or(Box<Expression>, Box<Expression>),
Not(Not),
Parenthetical(Parenthetical),
}
Expand description
The type to build a DynamoDB filter or condition expression. The Display
output
of an instance on this type will provide the needed expression.
condition-expression ::=
operand comparator operand
| operand BETWEEN operand AND operand
| operand IN ( operand (',' operand (, ...) ))
| function
| condition AND condition
| condition OR condition
| NOT condition
| ( condition )
Variants§
Comparison(String, Comparator, String)
Between(String, String, String)
In(String, Vec<String>)
Function(Function)
And(Box<Expression>, Box<Expression>)
Or(Box<Expression>, Box<Expression>)
Not(Not)
Parenthetical(Parenthetical)
Implementations§
source§impl Expression
impl Expression
pub fn and(self, b: Expression) -> Self
pub fn or(self, b: Expression) -> Self
pub fn parenthesize(self) -> Self
pub fn normalize(self) -> Self
Trait Implementations§
source§impl Clone for Expression
impl Clone for Expression
source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
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 Debug for Expression
impl Debug for Expression
source§impl Display for Expression
impl Display for Expression
source§impl From<&Expression> for String
impl From<&Expression> for String
source§fn from(value: &Expression) -> Self
fn from(value: &Expression) -> Self
Converts to this type from the input type.
source§impl From<Expression> for String
impl From<Expression> for String
source§fn from(value: Expression) -> Self
fn from(value: Expression) -> Self
Converts to this type from the input type.
source§impl From<Function> for Expression
impl From<Function> for Expression
source§impl From<Not> for Expression
impl From<Not> for Expression
source§impl From<Parenthetical> for Expression
impl From<Parenthetical> for Expression
source§fn from(parenthetical: Parenthetical) -> Self
fn from(parenthetical: Parenthetical) -> Self
Converts to this type from the input type.
source§impl Not for Expression
impl Not for Expression
source§impl PartialEq<Expression> for Expression
impl PartialEq<Expression> for Expression
source§fn eq(&self, other: &Expression) -> bool
fn eq(&self, other: &Expression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Expression
impl StructuralEq for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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