pub enum FeatureValueDto {
List(Vec<FeatureValueDto>),
String(String),
Integer(i64),
Real(f64),
Boolean(bool),
Null,
}Expand description
Untagged value type used in inference responses. Produces raw JSON primitives.
Ambiguity note: UUID strings and regular strings are both String in JSON. The backend
distinguishes them by UUID format; if you need to route downstream based on whether a returned
string is a UUID, parse it with uuid::Uuid::parse_str.
Variants§
List(Vec<FeatureValueDto>)
A list of feature values.
String(String)
A string (may be a UUID reference, a sort name, or a plain string).
Integer(i64)
An integer value.
Real(f64)
A real (floating-point) value.
Boolean(bool)
A boolean value.
Null
JSON null — represents uninstantiated.
Trait Implementations§
Source§impl Clone for FeatureValueDto
impl Clone for FeatureValueDto
Source§fn clone(&self) -> FeatureValueDto
fn clone(&self) -> FeatureValueDto
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 FeatureValueDto
impl Debug for FeatureValueDto
Source§impl<'de> Deserialize<'de> for FeatureValueDto
impl<'de> Deserialize<'de> for FeatureValueDto
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 PartialEq for FeatureValueDto
impl PartialEq for FeatureValueDto
Source§fn eq(&self, other: &FeatureValueDto) -> bool
fn eq(&self, other: &FeatureValueDto) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FeatureValueDto
impl Serialize for FeatureValueDto
impl StructuralPartialEq for FeatureValueDto
Auto Trait Implementations§
impl Freeze for FeatureValueDto
impl RefUnwindSafe for FeatureValueDto
impl Send for FeatureValueDto
impl Sync for FeatureValueDto
impl Unpin for FeatureValueDto
impl UnsafeUnpin for FeatureValueDto
impl UnwindSafe for FeatureValueDto
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