pub enum NumberOrNumberFormula {
Variant0(f64),
Variant1(String),
}
Expand description
A number or a string representing a formula that evaluates to a number.
JSON schema
{
"description": "A number or a string representing a formula that
evaluates to a number.",
"oneOf": [
{
"description": "A numeric value.",
"examples": [
1
],
"type": "number"
},
{
"description": "A formula that evaluates to a numeric value.",
"examples": [
"5 * 10"
],
"type": "string"
}
],
"x-schema-name": "NumberOrNumberFormula"
}
Variants§
Trait Implementations§
Source§impl Clone for NumberOrNumberFormula
impl Clone for NumberOrNumberFormula
Source§fn clone(&self) -> NumberOrNumberFormula
fn clone(&self) -> NumberOrNumberFormula
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 NumberOrNumberFormula
impl Debug for NumberOrNumberFormula
Source§impl<'de> Deserialize<'de> for NumberOrNumberFormula
impl<'de> Deserialize<'de> for NumberOrNumberFormula
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 NumberOrNumberFormula
impl Display for NumberOrNumberFormula
Source§impl From<&NumberOrNumberFormula> for NumberOrNumberFormula
impl From<&NumberOrNumberFormula> for NumberOrNumberFormula
Source§fn from(value: &NumberOrNumberFormula) -> Self
fn from(value: &NumberOrNumberFormula) -> Self
Converts to this type from the input type.
Source§impl From<f64> for NumberOrNumberFormula
impl From<f64> for NumberOrNumberFormula
Source§impl FromStr for NumberOrNumberFormula
impl FromStr for NumberOrNumberFormula
Source§impl Serialize for NumberOrNumberFormula
impl Serialize for NumberOrNumberFormula
Source§impl TryFrom<&String> for NumberOrNumberFormula
impl TryFrom<&String> for NumberOrNumberFormula
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for NumberOrNumberFormula
impl TryFrom<&str> for NumberOrNumberFormula
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for NumberOrNumberFormula
impl TryFrom<String> for NumberOrNumberFormula
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for NumberOrNumberFormula
impl RefUnwindSafe for NumberOrNumberFormula
impl Send for NumberOrNumberFormula
impl Sync for NumberOrNumberFormula
impl Unpin for NumberOrNumberFormula
impl UnwindSafe for NumberOrNumberFormula
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.