pub struct SettingDoc {
pub section: &'static str,
pub key: &'static str,
pub value_type: &'static str,
pub default: &'static str,
pub description: &'static str,
pub scope: SettingScope,
}Expand description
Documentation for one supported config.toml key.
Fields§
§section: &'static strTOML section, without brackets.
key: &'static strTOML key inside Self::section.
value_type: &'static strHuman-readable value type.
default: &'static strDefault as displayed to users.
description: &'static strWhat the setting controls.
scope: SettingScopeThe wrapper(s) that consume the setting.
Trait Implementations§
Source§impl Clone for SettingDoc
impl Clone for SettingDoc
Source§fn clone(&self) -> SettingDoc
fn clone(&self) -> SettingDoc
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 moreimpl Copy for SettingDoc
Source§impl Debug for SettingDoc
impl Debug for SettingDoc
impl Eq for SettingDoc
Source§impl PartialEq for SettingDoc
impl PartialEq for SettingDoc
impl StructuralPartialEq for SettingDoc
Auto Trait Implementations§
impl Freeze for SettingDoc
impl RefUnwindSafe for SettingDoc
impl Send for SettingDoc
impl Sync for SettingDoc
impl Unpin for SettingDoc
impl UnsafeUnpin for SettingDoc
impl UnwindSafe for SettingDoc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.