pub enum SettingsNode {
Group {
name: String,
children: Vec<SettingsNode>,
span: Option<Span>,
},
Number {
name: String,
value: f64,
span: Option<Span>,
},
Bool {
name: String,
value: bool,
span: Option<Span>,
},
String {
name: String,
value: String,
span: Option<Span>,
},
List {
name: String,
elements: Vec<SettingsListElement>,
span: Option<Span>,
},
}Expand description
One member of a settings group.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SettingsNode
impl Clone for SettingsNode
Source§fn clone(&self) -> SettingsNode
fn clone(&self) -> SettingsNode
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 SettingsNode
impl Debug for SettingsNode
Source§impl<'de> Deserialize<'de> for SettingsNode
impl<'de> Deserialize<'de> for SettingsNode
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 SettingsNode
impl PartialEq for SettingsNode
Source§impl Serialize for SettingsNode
impl Serialize for SettingsNode
impl StructuralPartialEq for SettingsNode
Auto Trait Implementations§
impl Freeze for SettingsNode
impl RefUnwindSafe for SettingsNode
impl Send for SettingsNode
impl Sync for SettingsNode
impl Unpin for SettingsNode
impl UnsafeUnpin for SettingsNode
impl UnwindSafe for SettingsNode
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