pub enum FieldValue {
Expression {
operator: Equality,
value: SubExpressionConstraint,
},
Numeric {
operator: Comparison,
value: NumericValue,
},
String {
operator: Equality,
terms: Vec<TypedSearchTerm>,
},
Boolean {
operator: Equality,
value: bool,
},
Time {
operator: Comparison,
values: Vec<TimeValue>,
},
}Expand description
The comparison of a memberfieldfilter.
Variants§
Expression
= sub or != sub.
Numeric
op #number.
String
= "string" or a set.
Boolean
= true or = false.
Time
< "time" and the other ordering operators (= and != with a
quoted value are string comparisons, the grammar’s first match).
Fields
§
operator: ComparisonThe operator: Less, LessOrEqual, Greater, or GreaterOrEqual.
Trait Implementations§
Source§impl Clone for FieldValue
impl Clone for FieldValue
Source§impl Debug for FieldValue
impl Debug for FieldValue
Source§impl Display for FieldValue
impl Display for FieldValue
impl Eq for FieldValue
Source§impl Hash for FieldValue
impl Hash for FieldValue
Source§impl PartialEq for FieldValue
impl PartialEq for FieldValue
impl StructuralPartialEq for FieldValue
Auto Trait Implementations§
impl Freeze for FieldValue
impl RefUnwindSafe for FieldValue
impl Send for FieldValue
impl Sync for FieldValue
impl Unpin for FieldValue
impl UnsafeUnpin for FieldValue
impl UnwindSafe for FieldValue
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