pub struct FieldInfo {
pub value_type: FieldType,
pub env: EnvBinding,
pub env_parser: Option<EnvParser>,
pub default: Option<String>,
pub renamed_from: Vec<String>,
}Expand description
Parsed metadata for a single config field.
Fields§
§value_type: FieldTypeResolved value type (see FieldType).
env: EnvBindingHow the field is reachable through an environment variable (see EnvBinding).
env_parser: Option<EnvParser>The schema’s named env_parser, if any (see EnvParser); None uses the type fallback.
default: Option<String>Default value serialised as a JSON literal, or None if the schema omits one.
renamed_from: Vec<String>Former dotted names of the setting, from the schema’s renamed_from, highest priority first.
The Agent’s codegen orders them by the version that deprecated each, oldest first, then by
name. A no-env setting has none: the Agent declares it with SetDefault, which registers no
former names.
Auto Trait Implementations§
impl Freeze for FieldInfo
impl RefUnwindSafe for FieldInfo
impl Send for FieldInfo
impl Sync for FieldInfo
impl Unpin for FieldInfo
impl UnsafeUnpin for FieldInfo
impl UnwindSafe for FieldInfo
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