Predicate

Struct 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§

Source§

impl Debug for Predicate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Predicate

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Predicate

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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