Struct smart_config::metadata::ConfigMetadata
source · pub struct ConfigMetadata {
pub ty: RustType,
pub help: &'static str,
pub params: &'static [ParamMetadata],
pub tag: Option<ConfigTag>,
pub nested_configs: &'static [NestedConfigMetadata],
/* private fields */
}
Expand description
Metadata for a configuration (i.e., a group of related parameters).
Fields§
§ty: RustType
Type of this configuration.
help: &'static str
Help regarding the config itself.
params: &'static [ParamMetadata]
Parameters included in the config.
tag: Option<ConfigTag>
Tag for enumeration configs.
nested_configs: &'static [NestedConfigMetadata]
Nested configs included in the config.
Implementations§
source§impl ConfigMetadata
impl ConfigMetadata
pub const fn assert_valid(&self)
Trait Implementations§
source§impl Clone for ConfigMetadata
impl Clone for ConfigMetadata
source§fn clone(&self) -> ConfigMetadata
fn clone(&self) -> ConfigMetadata
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 moreAuto Trait Implementations§
impl Freeze for ConfigMetadata
impl !RefUnwindSafe for ConfigMetadata
impl Send for ConfigMetadata
impl Sync for ConfigMetadata
impl Unpin for ConfigMetadata
impl !UnwindSafe for ConfigMetadata
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
)