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