Struct vega_lite_4::Predicate
source · pub struct Predicate {Show 14 fields
pub not: Option<ConditionalValueDefNumberExprRefPredicateComposition>,
pub and: Option<Vec<PredicateCompositionElement>>,
pub or: Option<Vec<PredicateCompositionElement>>,
pub equal: Option<Equal>,
pub field: Option<String>,
pub time_unit: Option<TimeUnitUnion>,
pub range: Option<LogicalNotPredicateRange>,
pub one_of: Option<Vec<SelectionInitInterval>>,
pub lt: Option<Lt>,
pub gt: Option<Lt>,
pub lte: Option<Lt>,
pub gte: Option<Lt>,
pub valid: Option<bool>,
pub selection: Option<Box<ConditionalValueDefNumberExprRefSelectionComposition>>,
}
Fields§
§not: Option<ConditionalValueDefNumberExprRefPredicateComposition>
§and: Option<Vec<PredicateCompositionElement>>
§or: Option<Vec<PredicateCompositionElement>>
§equal: Option<Equal>
The value that the field should be equal to.
field: Option<String>
Field to be tested.
time_unit: Option<TimeUnitUnion>
Time unit for the field to be tested.
range: Option<LogicalNotPredicateRange>
An array of inclusive minimum and maximum values for a field value of a data item to be included in the filtered data.
one_of: Option<Vec<SelectionInitInterval>>
A set of values that the field
’s value should be a member of, for a data item included
in the filtered data.
lt: Option<Lt>
The value that the field should be less than.
gt: Option<Lt>
The value that the field should be greater than.
lte: Option<Lt>
The value that the field should be less than or equals to.
gte: Option<Lt>
The value that the field should be greater than or equals to.
valid: Option<bool>
If set to true the field’s value has to be valid, meaning both not null
and not
NaN
.
selection: Option<Box<ConditionalValueDefNumberExprRefSelectionComposition>>
Filter using a selection name or a logical composition of selection names.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Predicate
impl<'de> Deserialize<'de> for Predicate
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 RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnwindSafe for Predicate
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