pub struct Comparison {
pub comparator: Comparator,
pub attribute: String,
pub value: Value,
}
Expand description
Comparison to a value
Fields§
§comparator: Comparator
The comparator to use
attribute: String
The attribute to compare
value: Value
The value to compare to
Implementations§
Source§impl Comparison
impl Comparison
Trait Implementations§
Source§impl Clone for Comparison
impl Clone for Comparison
Source§fn clone(&self) -> Comparison
fn clone(&self) -> Comparison
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 Comparison
impl Debug for Comparison
Source§impl<'de> Deserialize<'de> for Comparison
impl<'de> Deserialize<'de> for Comparison
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 Expr for Comparison
impl Expr for Comparison
Source§impl PartialEq for Comparison
impl PartialEq for Comparison
Source§impl Serialize for Comparison
impl Serialize for Comparison
impl StructuralPartialEq for Comparison
Auto Trait Implementations§
impl Freeze for Comparison
impl RefUnwindSafe for Comparison
impl Send for Comparison
impl Sync for Comparison
impl Unpin for Comparison
impl UnwindSafe for Comparison
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