#[non_exhaustive]pub enum PredicateValue {
String(String),
Number(f64),
Bool(bool),
Null,
}Expand description
Typed predicate value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
String(String)
String value (quoted in source).
Number(f64)
Numeric value.
Bool(bool)
Boolean value (true / false).
Null
Null literal.
Implementations§
Trait Implementations§
Source§impl Clone for PredicateValue
impl Clone for PredicateValue
Source§fn clone(&self) -> PredicateValue
fn clone(&self) -> PredicateValue
Returns a duplicate 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 PredicateValue
impl Debug for PredicateValue
Source§impl PartialEq for PredicateValue
impl PartialEq for PredicateValue
Source§impl Serialize for PredicateValue
impl Serialize for PredicateValue
impl StructuralPartialEq for PredicateValue
Auto Trait Implementations§
impl Freeze for PredicateValue
impl RefUnwindSafe for PredicateValue
impl Send for PredicateValue
impl Sync for PredicateValue
impl Unpin for PredicateValue
impl UnsafeUnpin for PredicateValue
impl UnwindSafe for PredicateValue
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