Enum splinter::registry::MetadataPredicate [−][src]
pub enum MetadataPredicate {
Eq(String, String),
Ne(String, String),
Gt(String, String),
Ge(String, String),
Lt(String, String),
Le(String, String),
}
Expand description
A predicate on a key/value pair in a Node’s metadata table.
Each variant is an operator, and supplies a tuple representing a key/value pair. It is applied by the comparison operator on the value found at the given key (the first item in the tuple) against the predicate’s value (the second item in the tuple).
If the item is missing in a node’s metadata table, the predicate returns false (with the
exception of the Ne
variant).
Variants
Applies the ==
operator.
Applies the !=
operator.
Applies the >
operator.
Applies the >=
operator.
Applies the <
operator.
Applies the <=
operator.
Implementations
Returns the Eq
predicate for the given key and value
Returns the Ne
predicate for the given key and value
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MetadataPredicate
impl Send for MetadataPredicate
impl Sync for MetadataPredicate
impl Unpin for MetadataPredicate
impl UnwindSafe for MetadataPredicate
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
type Output = T
type Output = T
Should always be Self