Struct smart_config::metadata::NestedConfigMetadata
source · pub struct NestedConfigMetadata {
pub name: &'static str,
pub aliases: &'static [(&'static str, AliasOptions)],
pub rust_field_name: &'static str,
pub tag_variant: Option<&'static ConfigVariant>,
pub meta: &'static ConfigMetadata,
}
Expand description
Mention of a nested configuration within a configuration.
Fields§
§name: &'static str
Name of the config in config sources. Empty for flattened configs. Not necessarily the Rust field name!
aliases: &'static [(&'static str, AliasOptions)]
Aliases for the config. Cannot be present for flattened configs.
rust_field_name: &'static str
Name of the config field in Rust code.
tag_variant: Option<&'static ConfigVariant>
Tag variant in the enclosing ConfigMetadata
that enables this parameter. None
means that the parameter is unconditionally enabled.
meta: &'static ConfigMetadata
Config metadata.
Trait Implementations§
source§impl Clone for NestedConfigMetadata
impl Clone for NestedConfigMetadata
source§fn clone(&self) -> NestedConfigMetadata
fn clone(&self) -> NestedConfigMetadata
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 Debug for NestedConfigMetadata
impl Debug for NestedConfigMetadata
impl Copy for NestedConfigMetadata
Auto Trait Implementations§
impl Freeze for NestedConfigMetadata
impl !RefUnwindSafe for NestedConfigMetadata
impl Send for NestedConfigMetadata
impl Sync for NestedConfigMetadata
impl Unpin for NestedConfigMetadata
impl !UnwindSafe for NestedConfigMetadata
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)