pub struct FieldInfo {
pub value_type: FieldType,
pub env: EnvBinding,
pub env_parser: Option<EnvParser>,
pub default: Option<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.
Auto Trait Implementations§
impl Freeze for FieldInfo
impl RefUnwindSafe for FieldInfo
impl Send for FieldInfo
impl Sync for FieldInfo
impl Unpin 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