pub struct ConfigOption<'a, V: OptionType<'a>> {
pub name: &'a str,
pub default: V::DefaultValue,
pub description: &'a str,
pub deprecated: bool,
pub dynamic: bool,
pub multi: bool,
}
Fields§
§name: &'a str
The name of the ConfigOption
.
default: V::DefaultValue
The default value of the ConfigOption
description: &'a str
§deprecated: bool
§dynamic: bool
§multi: bool
Implementations§
Source§impl<'a, V: OptionType<'a>> ConfigOption<'a, V>
impl<'a, V: OptionType<'a>> ConfigOption<'a, V>
pub fn build(&self) -> UntypedConfigOption
Source§impl<'a> ConfigOption<'a, DefaultString>
impl<'a> ConfigOption<'a, DefaultString>
Source§impl<'a> ConfigOption<'a, String>
impl<'a> ConfigOption<'a, String>
Source§impl<'a> ConfigOption<'a, DefaultStringArray>
impl<'a> ConfigOption<'a, DefaultStringArray>
Source§impl<'a> ConfigOption<'a, StringArray>
impl<'a> ConfigOption<'a, StringArray>
Source§impl<'a> ConfigOption<'a, DefaultInteger>
impl<'a> ConfigOption<'a, DefaultInteger>
Source§impl<'a> ConfigOption<'a, Integer>
impl<'a> ConfigOption<'a, Integer>
Source§impl<'a> ConfigOption<'a, DefaultIntegerArray>
impl<'a> ConfigOption<'a, DefaultIntegerArray>
Source§impl<'a> ConfigOption<'a, IntegerArray>
impl<'a> ConfigOption<'a, IntegerArray>
Source§impl<'a> ConfigOption<'a, Boolean>
impl<'a> ConfigOption<'a, Boolean>
Source§impl<'a> ConfigOption<'a, DefaultBoolean>
impl<'a> ConfigOption<'a, DefaultBoolean>
Source§impl<'a> ConfigOption<'a, Flag>
impl<'a> ConfigOption<'a, Flag>
Source§impl<'a, V> ConfigOption<'a, V>where
V: OptionType<'a>,
impl<'a, V> ConfigOption<'a, V>where
V: OptionType<'a>,
Trait Implementations§
Source§impl<'a, V: Clone + OptionType<'a>> Clone for ConfigOption<'a, V>where
V::DefaultValue: Clone,
impl<'a, V: Clone + OptionType<'a>> Clone for ConfigOption<'a, V>where
V::DefaultValue: Clone,
Source§fn clone(&self) -> ConfigOption<'a, V>
fn clone(&self) -> ConfigOption<'a, V>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, V: Debug + OptionType<'a>> Debug for ConfigOption<'a, V>where
V::DefaultValue: Debug,
impl<'a, V: Debug + OptionType<'a>> Debug for ConfigOption<'a, V>where
V::DefaultValue: Debug,
Auto Trait Implementations§
impl<'a, V> Freeze for ConfigOption<'a, V>
impl<'a, V> RefUnwindSafe for ConfigOption<'a, V>
impl<'a, V> Send for ConfigOption<'a, V>
impl<'a, V> Sync for ConfigOption<'a, V>
impl<'a, V> Unpin for ConfigOption<'a, V>
impl<'a, V> UnwindSafe for ConfigOption<'a, V>
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