[][src]Struct vega_lite_3::Predicate

pub struct Predicate {
    pub not: Option<Box<PurpleLogicalOperandPredicate>>,
    pub and: Option<Vec<LogicalOperandPredicateElement>>,
    pub or: Option<Vec<LogicalOperandPredicateElement>>,
    pub equal: Option<EqualUnion>,
    pub field: Option<String>,
    pub time_unit: Option<TimeUnit>,
    pub range: Option<Vec<Option<RangeElement>>>,
    pub one_of: Option<Vec<SelectionInitIntervalElement>>,
    pub lt: Option<Lt>,
    pub gt: Option<Lt>,
    pub lte: Option<Lt>,
    pub gte: Option<Lt>,
    pub valid: Option<bool>,
    pub selection: Option<Box<PurpleSelectionOperand>>,
}

Fields

not: Option<Box<PurpleLogicalOperandPredicate>>and: Option<Vec<LogicalOperandPredicateElement>>or: Option<Vec<LogicalOperandPredicateElement>>equal: Option<EqualUnion>

The value that the field should be equal to.

field: Option<String>

Field to be filtered.

time_unit: Option<TimeUnit>

Time unit for the field to be filtered.

range: Option<Vec<Option<RangeElement>>>

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<SelectionInitIntervalElement>>

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<PurpleSelectionOperand>>

Filter using a selection name.

Trait Implementations

impl Clone for Predicate[src]

impl Debug for Predicate[src]

impl Default for Predicate[src]

impl<'de> Deserialize<'de> for Predicate[src]

impl From<Predicate> for LogicalOperandPredicateElement[src]

impl From<Predicate> for PurpleLogicalOperandPredicate[src]

impl Serialize for Predicate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.