pub enum AttributeValue {
Expression {
operator: Equality,
value: SubExpressionConstraint,
},
Numeric {
operator: Comparison,
value: NumericValue,
},
String {
operator: Equality,
terms: Vec<TypedSearchTerm>,
},
Boolean {
operator: Equality,
value: bool,
},
}Expand description
The comparison and value of an attribute or a member field.
Variants§
Expression
= sub or != sub.
Numeric
op #number.
String
= "string", = wild:"...", or a set of them.
Fields
§
terms: Vec<TypedSearchTerm>The search terms; one prints bare, more print as a set.
Boolean
= true or = false.
Trait Implementations§
Source§impl Clone for AttributeValue
impl Clone for AttributeValue
Source§fn clone(&self) -> AttributeValue
fn clone(&self) -> AttributeValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttributeValue
impl Debug for AttributeValue
Source§impl Display for AttributeValue
impl Display for AttributeValue
impl Eq for AttributeValue
Source§impl Hash for AttributeValue
impl Hash for AttributeValue
Source§impl PartialEq for AttributeValue
impl PartialEq for AttributeValue
impl StructuralPartialEq for AttributeValue
Auto Trait Implementations§
impl Freeze for AttributeValue
impl RefUnwindSafe for AttributeValue
impl Send for AttributeValue
impl Sync for AttributeValue
impl Unpin for AttributeValue
impl UnsafeUnpin for AttributeValue
impl UnwindSafe for AttributeValue
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