pub enum SettingValue {
Bool(bool),
Integer(i64),
Float(f64),
String(String),
Array(Vec<SettingValue>),
Object(BTreeMap<String, SettingValue>),
}Expand description
A framework-specific server setting value carried as structured JSON data (never a pre-rendered shell fragment) across the integration boundary.
Variants§
Bool(bool)
A JSON boolean.
Integer(i64)
A JSON integer.
Float(f64)
A JSON floating-point number.
String(String)
A JSON string.
Array(Vec<SettingValue>)
A JSON array of setting values.
Object(BTreeMap<String, SettingValue>)
A JSON object of named setting values.
Trait Implementations§
Source§impl Clone for SettingValue
impl Clone for SettingValue
Source§fn clone(&self) -> SettingValue
fn clone(&self) -> SettingValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SettingValue
impl Debug for SettingValue
Source§impl<'de> Deserialize<'de> for SettingValue
impl<'de> Deserialize<'de> for SettingValue
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 SettingValue
impl JsonSchema for SettingValue
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 SettingValue
impl PartialEq for SettingValue
Source§impl Serialize for SettingValue
impl Serialize for SettingValue
impl StructuralPartialEq for SettingValue
Auto Trait Implementations§
impl Freeze for SettingValue
impl RefUnwindSafe for SettingValue
impl Send for SettingValue
impl Sync for SettingValue
impl Unpin for SettingValue
impl UnsafeUnpin for SettingValue
impl UnwindSafe for SettingValue
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