#[non_exhaustive]pub enum FeatureValue {
Null,
Bool(bool),
Number(f64),
String(BoundedText),
RedactedString {
bytes: u64,
},
ObjectKey(ObjectKey),
List(Vec<FeatureValue>),
}Expand description
Feature property 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.
Null
Null feature value.
Bool(bool)
Boolean feature value.
Number(f64)
Numeric feature value.
String(BoundedText)
Bounded string feature value.
RedactedString
Content-bearing string value redacted from reports.
ObjectKey(ObjectKey)
Object key feature value.
List(Vec<FeatureValue>)
Bounded list feature value.
Trait Implementations§
Source§impl Clone for FeatureValue
impl Clone for FeatureValue
Source§fn clone(&self) -> FeatureValue
fn clone(&self) -> FeatureValue
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 FeatureValue
impl Debug for FeatureValue
Source§impl<'de> Deserialize<'de> for FeatureValue
impl<'de> Deserialize<'de> for FeatureValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 FeatureValue
impl PartialEq for FeatureValue
Source§fn eq(&self, other: &FeatureValue) -> bool
fn eq(&self, other: &FeatureValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FeatureValue
impl Serialize for FeatureValue
impl StructuralPartialEq for FeatureValue
Auto Trait Implementations§
impl Freeze for FeatureValue
impl RefUnwindSafe for FeatureValue
impl Send for FeatureValue
impl Sync for FeatureValue
impl Unpin for FeatureValue
impl UnsafeUnpin for FeatureValue
impl UnwindSafe for FeatureValue
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