[][src]Struct vega_lite_3::PredicateBuilder

pub struct PredicateBuilder { /* fields omitted */ }

Builder for Predicate.

Methods

impl PredicateBuilder[src]

pub fn not<VALUE: Into<Box<PurpleLogicalOperandPredicate>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

pub fn and<VALUE: Into<Vec<LogicalOperandPredicateElement>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

pub fn or<VALUE: Into<Vec<LogicalOperandPredicateElement>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

pub fn equal<VALUE: Into<EqualUnion>>(&mut self, value: VALUE) -> &mut Self[src]

The value that the field should be equal to.

pub fn field<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

Field to be filtered.

pub fn time_unit<VALUE: Into<TimeUnit>>(&mut self, value: VALUE) -> &mut Self[src]

Time unit for the field to be filtered.

pub fn range<VALUE: Into<Vec<Option<RangeElement>>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

An array of inclusive minimum and maximum values for a field value of a data item to be included in the filtered data.

pub fn one_of<VALUE: Into<Vec<SelectionInitIntervalElement>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

A set of values that the field's value should be a member of, for a data item included in the filtered data.

pub fn lt<VALUE: Into<Lt>>(&mut self, value: VALUE) -> &mut Self[src]

The value that the field should be less than.

pub fn gt<VALUE: Into<Lt>>(&mut self, value: VALUE) -> &mut Self[src]

The value that the field should be greater than.

pub fn lte<VALUE: Into<Lt>>(&mut self, value: VALUE) -> &mut Self[src]

The value that the field should be less than or equals to.

pub fn gte<VALUE: Into<Lt>>(&mut self, value: VALUE) -> &mut Self[src]

The value that the field should be greater than or equals to.

pub fn valid<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self[src]

If set to true the field's value has to be valid, meaning both not null and not NaN.

pub fn selection<VALUE: Into<Box<PurpleSelectionOperand>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Filter using a selection name.

pub fn build(&self) -> Result<Predicate, String>[src]

Builds a new Predicate.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for PredicateBuilder[src]

impl Default for PredicateBuilder[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> 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.