pub enum ValueVariant0 {
Variant0(String),
Variant1(f64),
Variant2(bool),
}
Expand description
ValueVariant0
JSON schema
{
"allOf": [
{
"additionalProperties": false,
"x-schema-name": "Value"
},
{
"$ref": "#/components/schemas/ScalarValue"
},
{
"not": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ScalarValue"
},
{
"type": "array",
"items": {
"$ref": "#/components/schemas/ScalarValue"
}
}
]
}
}
}
]
}
Variants§
Trait Implementations§
Source§impl Clone for ValueVariant0
impl Clone for ValueVariant0
Source§fn clone(&self) -> ValueVariant0
fn clone(&self) -> ValueVariant0
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 ValueVariant0
impl Debug for ValueVariant0
Source§impl<'de> Deserialize<'de> for ValueVariant0
impl<'de> Deserialize<'de> for ValueVariant0
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 Display for ValueVariant0
impl Display for ValueVariant0
Source§impl From<&ValueVariant0> for ValueVariant0
impl From<&ValueVariant0> for ValueVariant0
Source§fn from(value: &ValueVariant0) -> Self
fn from(value: &ValueVariant0) -> Self
Converts to this type from the input type.
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.
Source§impl From<bool> for ValueVariant0
impl From<bool> for ValueVariant0
Source§impl From<f64> for ValueVariant0
impl From<f64> for ValueVariant0
Source§impl FromStr for ValueVariant0
impl FromStr for ValueVariant0
Source§impl Serialize for ValueVariant0
impl Serialize for ValueVariant0
Source§impl TryFrom<&String> for ValueVariant0
impl TryFrom<&String> for ValueVariant0
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ValueVariant0
impl TryFrom<&str> for ValueVariant0
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ValueVariant0
impl TryFrom<String> for ValueVariant0
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ValueVariant0
impl RefUnwindSafe for ValueVariant0
impl Send for ValueVariant0
impl Sync for ValueVariant0
impl Unpin for ValueVariant0
impl UnwindSafe for ValueVariant0
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.