pub struct SettingMeta {
pub name: &'static str,
pub type_: &'static str,
pub default: &'static str,
pub cli_flags: &'static [&'static str],
pub env_vars: &'static [&'static str],
pub config_keys: &'static [&'static str],
pub examples: &'static [&'static str],
pub since: &'static str,
pub docs: &'static str,
}Expand description
Static description of one setting, for tak settings and docs.
Fields§
§name: &'static str§type_: &'static str§default: &'static strThe default, rendered as the TOML literal from the registry.
cli_flags: &'static [&'static str]§env_vars: &'static [&'static str]§config_keys: &'static [&'static str]Dotted keys in tak.toml.
examples: &'static [&'static str]§since: &'static str§docs: &'static strTrait Implementations§
Source§impl Clone for SettingMeta
impl Clone for SettingMeta
Source§fn clone(&self) -> SettingMeta
fn clone(&self) -> SettingMeta
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 SettingMeta
Auto Trait Implementations§
impl Freeze for SettingMeta
impl RefUnwindSafe for SettingMeta
impl Send for SettingMeta
impl Sync for SettingMeta
impl Unpin for SettingMeta
impl UnsafeUnpin for SettingMeta
impl UnwindSafe for SettingMeta
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