Struct dynamodb_expression::condition::Parenthetical  
source · pub struct Parenthetical { /* private fields */ }Expand description
Wraps a condition in parentheses.
See also: Condition::parenthesize
use dynamodb_expression::Path;
let a = "a".parse::<Path>()?;
let b = "b".parse::<Path>()?;
let c = "c".parse::<Path>()?;
let d = "d".parse::<Path>()?;
let condition = a.greater_than(b).parenthesize().and(c.less_than(d).parenthesize());
assert_eq!("(a > b) AND (c < d)", condition.to_string());Trait Implementations§
source§impl Clone for Parenthetical
 
impl Clone for Parenthetical
source§fn clone(&self) -> Parenthetical
 
fn clone(&self) -> Parenthetical
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 Parenthetical
 
impl Debug for Parenthetical
source§impl Display for Parenthetical
 
impl Display for Parenthetical
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<T> From<T> for Parenthetical
 
impl<T> From<T> for Parenthetical
source§impl PartialEq for Parenthetical
 
impl PartialEq for Parenthetical
source§fn eq(&self, other: &Parenthetical) -> bool
 
fn eq(&self, other: &Parenthetical) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for Parenthetical
impl StructuralEq for Parenthetical
impl StructuralPartialEq for Parenthetical
Auto Trait Implementations§
impl RefUnwindSafe for Parenthetical
impl Send for Parenthetical
impl Sync for Parenthetical
impl Unpin for Parenthetical
impl UnwindSafe for Parenthetical
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.