pub enum SettingsNode {
Workshop {
children: Vec<SettingsNode>,
span: Option<Span>,
},
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>,
},
Flag {
name: String,
span: Option<Span>,
},
String {
name: String,
value: String,
span: Option<Span>,
},
List {
name: String,
elements: Vec<SettingsListElement>,
span: Option<Span>,
},
Raw {
name: String,
value: String,
span: Option<Span>,
},
}Expand description
One member of a settings group.
Variants§
Workshop
User-authored mode data under settings.workshop.
Group
Number
Bool
Flag
A presence-only Workshop extension setting (for example Beam Effects).
String
List
Raw
A syntactically valid settings member whose semantic catalog entry is not yet declared. The raw value is carried explicitly so parsing does not fabricate a type or silently discard project settings.
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 moreAuto 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