pub enum Value {
Variant0(ValueVariant0),
Variant1(Vec<ValueVariant1Item>),
}
Expand description
A Coda result or entity expressed as a primitive type, or array of primitive types.
JSON schema
{
"description": "A Coda result or entity expressed as a primitive type,
or array of primitive types.",
"oneOf": [
{
"$ref": "#/components/schemas/ScalarValue"
},
{
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ScalarValue"
},
{
"type": "array",
"items": {
"$ref": "#/components/schemas/ScalarValue"
}
}
]
}
}
],
"additionalProperties": false,
"x-schema-name": "Value"
}
Variants§
Variant0(ValueVariant0)
Variant1(Vec<ValueVariant1Item>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
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<ValueVariant0> for Value
impl From<ValueVariant0> for Value
Source§fn from(value: ValueVariant0) -> Self
fn from(value: ValueVariant0) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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