#[non_exhaustive]pub struct NumberComparator {
pub eq: Option<f64>,
pub neq: Option<f64>,
pub lt: Option<f64>,
pub lte: Option<f64>,
pub gt: Option<f64>,
pub gte: Option<f64>,
pub in: Option<Vec<f64>>,
pub nin: Option<Vec<f64>>,
}Expand description
Comparator for non-nullable number fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.eq: Option<f64>Equals.
neq: Option<f64>Not equals.
lt: Option<f64>Less than.
lte: Option<f64>Less than or equal.
gt: Option<f64>Greater than.
gte: Option<f64>Greater than or equal.
in: Option<Vec<f64>>Value is in the given list.
nin: Option<Vec<f64>>Value is not in the given list.
Implementations§
Source§impl NumberComparator
impl NumberComparator
Sourcepub fn builder() -> NumberComparatorBuilder
pub fn builder() -> NumberComparatorBuilder
Create an instance of NumberComparator using the builder syntax
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 (const: unstable) · 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
Auto Trait Implementations§
impl Freeze for NumberComparator
impl RefUnwindSafe for NumberComparator
impl Send for NumberComparator
impl Sync for NumberComparator
impl Unpin for NumberComparator
impl UnsafeUnpin 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