pub struct Metadata {
pub name: &'static str,
pub varname: &'static str,
pub type_name: &'static str,
pub flags: MetaFlag,
pub editor_hint: Option<MetadataEditorHint>,
pub description: &'static str,
pub env: Option<&'static str>,
}Expand description
Describes metadata for a configuration entity, intended for utilization by external tools.
Fields§
§name: &'static strUnique identifier for this configuration entity.
varname: &'static strSource variable name from the configuration definition. It’s typically identical to ‘name’ unless an alternative name is explicitly set.
type_name: &'static strString representation of the type for this configuration entity.
flags: MetaFlagFlags that denote various behaviors and hints associated with the configuration entity.
editor_hint: Option<MetadataEditorHint>Provides guidance for a monitoring editor on how to interact with this variable. While this crate doesn’t use this hint directly, it helps external monitors understand the preferred method to edit the variable.
description: &'static strA brief description that elaborates on the purpose or role of the configuration entity.
env: Option<&'static str>Corresponding environment variable name, if any, that maps to this configuration entity.