Struct vega_lite::Predicate

source ·
pub struct Predicate {
Show 13 fields pub not: Box<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<SortElement>>, pub lt: Option<Lt>, pub gt: Option<Lt>, pub lte: Option<Lt>, pub gte: Option<Lt>, pub selection: Box<Option<Box<PurpleSelectionOperand>>>,
}

Fields§

§not: Box<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<SortElement>>

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.

§selection: Box<Option<Box<PurpleSelectionOperand>>>

Filter using a selection name.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.