pub enum PredicateCompositionElement {
Predicate(Box<Predicate>),
String(String),
}
Expand description
Predicate for triggering the condition
The filter
property must be a predication definition, which can take one of the
following forms:
-
an expression string, where
datum
can be used to refer to the current data object. For example,{filter: "datum.b2 > 60"}
would make the output data includes only items that have values in the fieldb2
over 60. -
one of the field predicates:
equal
,lt
,lte
,gt
,gte
,range
,oneOf
, orvalid
, -
a selection predicate, which define the names of a selection that the data point should belong to (or a logical composition of selections).
-
a logical composition of (1), (2), or (3).
Variants§
Trait Implementations§
source§impl Clone for PredicateCompositionElement
impl Clone for PredicateCompositionElement
source§fn clone(&self) -> PredicateCompositionElement
fn clone(&self) -> PredicateCompositionElement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PredicateCompositionElement
impl Debug for PredicateCompositionElement
source§impl<'de> Deserialize<'de> for PredicateCompositionElement
impl<'de> Deserialize<'de> for PredicateCompositionElement
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
source§impl From<&str> for PredicateCompositionElement
impl From<&str> for PredicateCompositionElement
source§impl From<String> for PredicateCompositionElement
impl From<String> for PredicateCompositionElement
source§fn from(original: String) -> PredicateCompositionElement
fn from(original: String) -> PredicateCompositionElement
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for PredicateCompositionElement
impl Send for PredicateCompositionElement
impl Sync for PredicateCompositionElement
impl Unpin for PredicateCompositionElement
impl UnwindSafe for PredicateCompositionElement
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more