pub enum SettingsSpec {
Real {
name: String,
description: String,
minimum: f64,
maximum: f64,
default: f64,
},
Integer {
name: String,
description: String,
minimum: i64,
maximum: i64,
default: i64,
},
Boolean {
name: String,
description: String,
default: bool,
},
Enumeration {
name: String,
description: String,
values: Vec<String>,
default: String,
},
String {
name: String,
description: String,
default: String,
},
}Expand description
Description of an environmental parameter.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SettingsSpec
impl Clone for SettingsSpec
Source§fn clone(&self) -> SettingsSpec
fn clone(&self) -> SettingsSpec
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 SettingsSpec
impl Debug for SettingsSpec
Source§impl<'de> Deserialize<'de> for SettingsSpec
impl<'de> Deserialize<'de> for SettingsSpec
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 PartialEq for SettingsSpec
impl PartialEq for SettingsSpec
Source§fn eq(&self, other: &SettingsSpec) -> bool
fn eq(&self, other: &SettingsSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SettingsSpec
impl Serialize for SettingsSpec
impl StructuralPartialEq for SettingsSpec
Auto Trait Implementations§
impl Freeze for SettingsSpec
impl RefUnwindSafe for SettingsSpec
impl Send for SettingsSpec
impl Sync for SettingsSpec
impl Unpin for SettingsSpec
impl UnsafeUnpin for SettingsSpec
impl UnwindSafe for SettingsSpec
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