pub enum OptionValue {
Null,
Bool(bool),
Integer(i64),
Float(f64),
String(String),
Array(Vec<OptionValue>),
Map(BTreeMap<String, OptionValue>),
}Expand description
One node of an options tree.
Variants§
Null
Bool(bool)
Integer(i64)
Float(f64)
String(String)
Array(Vec<OptionValue>)
Map(BTreeMap<String, OptionValue>)
Implementations§
Source§impl OptionValue
impl OptionValue
Trait Implementations§
Source§impl Clone for OptionValue
impl Clone for OptionValue
Source§impl Debug for OptionValue
impl Debug for OptionValue
Source§impl<'de> Deserialize<'de> for OptionValue
impl<'de> Deserialize<'de> for OptionValue
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for OptionValue
impl From<&str> for OptionValue
Source§impl From<Options> for OptionValue
impl From<Options> for OptionValue
Source§impl From<String> for OptionValue
impl From<String> for OptionValue
Source§impl From<bool> for OptionValue
impl From<bool> for OptionValue
Source§impl From<i64> for OptionValue
impl From<i64> for OptionValue
Source§impl From<u32> for OptionValue
impl From<u32> for OptionValue
Source§impl From<usize> for OptionValue
impl From<usize> for OptionValue
Source§impl JsonSchema for OptionValue
impl JsonSchema for OptionValue
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &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 OptionValue
impl PartialEq for OptionValue
Source§impl Serialize for OptionValue
impl Serialize for OptionValue
impl StructuralPartialEq for OptionValue
Auto Trait Implementations§
impl Forget for OptionValue
impl Freeze for OptionValue
impl Move for OptionValue
impl RefUnwindSafe for OptionValue
impl Send for OptionValue
impl Sync for OptionValue
impl Unpin for OptionValue
impl UnsafeUnpin for OptionValue
impl UnwindSafe for OptionValue
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