pub struct EstimateComparator {
pub eq: Option<f64>,
pub neq: Option<f64>,
pub in: Option<Vec<f64>>,
pub nin: Option<Vec<f64>>,
pub null: Option<bool>,
pub lt: Option<f64>,
pub lte: Option<f64>,
pub gt: Option<f64>,
pub gte: Option<f64>,
pub or: Option<Vec<Box<NullableNumberComparator>>>,
pub and: Option<Vec<Box<NullableNumberComparator>>>,
}Expand description
Comparator for estimates.
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.
null: Option<bool>Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values.
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.
or: Option<Vec<Box<NullableNumberComparator>>>Compound filters, all of which need to be matched by the estimate.
and: Option<Vec<Box<NullableNumberComparator>>>Compound filters, one of which need to be matched by the estimate.
Trait Implementations§
Source§impl Clone for EstimateComparator
impl Clone for EstimateComparator
Source§fn clone(&self) -> EstimateComparator
fn clone(&self) -> EstimateComparator
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 EstimateComparator
impl Debug for EstimateComparator
Source§impl Default for EstimateComparator
impl Default for EstimateComparator
Source§fn default() -> EstimateComparator
fn default() -> EstimateComparator
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EstimateComparator
impl<'de> Deserialize<'de> for EstimateComparator
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 EstimateComparator
impl RefUnwindSafe for EstimateComparator
impl Send for EstimateComparator
impl Sync for EstimateComparator
impl Unpin for EstimateComparator
impl UnwindSafe for EstimateComparator
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