pub struct NumberComparator {
pub eq: Option<f64>,
pub neq: Option<f64>,
pub in: Option<Vec<f64>>,
pub nin: Option<Vec<f64>>,
pub lt: Option<f64>,
pub lte: Option<f64>,
pub gt: Option<f64>,
pub gte: Option<f64>,
}Expand description
Comparator for numbers.
Fields§
§eq: Option<f64>Equals constraint.
neq: Option<f64>Not-equals constraint.
in: Option<Vec<f64>>In-array constraint.
nin: Option<Vec<f64>>Not-in-array constraint.
lt: Option<f64>Less-than constraint. Matches any values that are less than the given value.
lte: Option<f64>Less-than-or-equal constraint. Matches any values that are less than or equal to the given value.
gt: Option<f64>Greater-than constraint. Matches any values that are greater than the given value.
gte: Option<f64>Greater-than-or-equal constraint. Matches any values that are greater than or equal to the given value.
Trait Implementations§
Source§impl Clone for NumberComparator
impl Clone for NumberComparator
Source§fn clone(&self) -> NumberComparator
fn clone(&self) -> NumberComparator
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 NumberComparator
impl Debug for NumberComparator
Source§impl Default for NumberComparator
impl Default for NumberComparator
Source§fn default() -> NumberComparator
fn default() -> NumberComparator
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NumberComparator
impl<'de> Deserialize<'de> for NumberComparator
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
Auto Trait Implementations§
impl Freeze for NumberComparator
impl RefUnwindSafe for NumberComparator
impl Send for NumberComparator
impl Sync for NumberComparator
impl Unpin for NumberComparator
impl UnwindSafe for NumberComparator
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