pub struct FieldInfo {
pub value_type: FieldType,
pub env_vars: Vec<String>,
pub default: Option<String>,
}Expand description
Parsed metadata for a single config field.
Fields§
§value_type: FieldTypeResolved value type (see FieldType).
env_vars: Vec<String>Environment variable names that map to this field. Empty when the field carries a
no-env tag.
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 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