#[non_exhaustive]pub enum ModelValue {
Null,
Bool(bool),
Number(f64),
String(BoundedText),
ObjectKey(ObjectKey),
List(Vec<ModelValue>),
}Expand description
Model value used by rule evaluation.
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.
Null
Null value.
Bool(bool)
Boolean value.
Number(f64)
Number value.
String(BoundedText)
String value.
ObjectKey(ObjectKey)
Object key value.
List(Vec<ModelValue>)
Bounded list value.
Trait Implementations§
Source§impl Clone for ModelValue
impl Clone for ModelValue
Source§fn clone(&self) -> ModelValue
fn clone(&self) -> ModelValue
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 ModelValue
impl Debug for ModelValue
Source§impl From<CosObject> for ModelValue
impl From<CosObject> for ModelValue
Source§impl From<ModelValue> for FeatureValue
impl From<ModelValue> for FeatureValue
Source§fn from(value: ModelValue) -> Self
fn from(value: ModelValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModelValue
impl PartialEq for ModelValue
Source§fn eq(&self, other: &ModelValue) -> bool
fn eq(&self, other: &ModelValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModelValue
Auto Trait Implementations§
impl Freeze for ModelValue
impl RefUnwindSafe for ModelValue
impl Send for ModelValue
impl Sync for ModelValue
impl Unpin for ModelValue
impl UnsafeUnpin for ModelValue
impl UnwindSafe for ModelValue
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