pub struct EnvKey {
pub env_vars: &'static [&'static str],
pub path: &'static [&'static str],
pub decode: EnvDecode,
}Expand description
One modeled configuration key and how to read it from the environment.
Fields§
§env_vars: &'static [&'static str]The environment variable names bound to this key, highest priority first. The first one
set to a non-empty value supplies the key’s value, matching the Agent’s per-key lookup; see
[EnvSnapshot] for how case is matched.
path: &'static [&'static str]The nested path the typed deserializer reads (for example, ["proxy", "http"]).
decode: EnvDecodeHow to decode the raw string into the schema-declared JSON shape.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnvKey
impl RefUnwindSafe for EnvKey
impl Send for EnvKey
impl Sync for EnvKey
impl Unpin for EnvKey
impl UnsafeUnpin for EnvKey
impl UnwindSafe for EnvKey
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