Struct smart_config::metadata::ConfigVariant
source · pub struct ConfigVariant {
pub name: &'static str,
pub aliases: &'static [&'static str],
pub rust_name: &'static str,
pub help: &'static str,
}
Expand description
Variant of a ConfigTag
.
Fields§
§name: &'static str
Canonical param name in the config sources. Not necessarily the Rust name!
aliases: &'static [&'static str]
Param aliases.
rust_name: &'static str
Name of the corresponding enum variant in Rust code.
help: &'static str
Human-readable param help parsed from the doc comment.
Trait Implementations§
source§impl Clone for ConfigVariant
impl Clone for ConfigVariant
source§fn clone(&self) -> ConfigVariant
fn clone(&self) -> ConfigVariant
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 ConfigVariant
impl Debug for ConfigVariant
impl Copy for ConfigVariant
Auto Trait Implementations§
impl Freeze for ConfigVariant
impl RefUnwindSafe for ConfigVariant
impl Send for ConfigVariant
impl Sync for ConfigVariant
impl Unpin for ConfigVariant
impl UnwindSafe for ConfigVariant
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
)