pub enum ParamValue {
Switch(bool),
Integer(i64),
Number(f64),
Text(String),
}Expand description
A parameter’s value.
Variants§
Switch(bool)
On or off.
Integer(i64)
A whole number.
Number(f64)
A number.
Text(String)
Text, or a choice.
Implementations§
Trait Implementations§
Source§impl Clone for ParamValue
impl Clone for ParamValue
Source§impl Debug for ParamValue
impl Debug for ParamValue
Source§impl<'de> Deserialize<'de> for ParamValue
impl<'de> Deserialize<'de> for ParamValue
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 JsonSchema for ParamValue
impl JsonSchema for ParamValue
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ParamValue
impl PartialEq for ParamValue
Source§impl Serialize for ParamValue
impl Serialize for ParamValue
impl StructuralPartialEq for ParamValue
Auto Trait Implementations§
impl Forget for ParamValue
impl Freeze for ParamValue
impl Move for ParamValue
impl RefUnwindSafe for ParamValue
impl Send for ParamValuewhere
RawVecInner: Send,
impl Sync for ParamValuewhere
RawVecInner: Sync,
impl Unpin for ParamValue
impl UnsafeUnpin for ParamValue
impl UnwindSafe for ParamValuewhere
RawVecInner: UnwindSafe,
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