#[non_exhaustive]pub struct EnvOverride {
pub env_var: String,
pub target_field: String,
pub source: EnvOverrideSource,
pub value: Option<String>,
}Expand description
One environment override applied to a configuration struct.
Secret-typed targets redact their value by setting Self::value to
None; non-secret targets carry the parsed string value that was applied.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.env_var: StringEnvironment variable name that supplied the override.
target_field: StringDotted TOML path that was overridden, such as server.listen_port.
source: EnvOverrideSourceSource of the override value.
value: Option<String>Applied non-secret value, or None for secret-typed targets.
Trait Implementations§
Source§impl Clone for EnvOverride
impl Clone for EnvOverride
Source§fn clone(&self) -> EnvOverride
fn clone(&self) -> EnvOverride
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvOverride
impl Debug for EnvOverride
impl Eq for EnvOverride
Source§impl PartialEq for EnvOverride
impl PartialEq for EnvOverride
impl StructuralPartialEq for EnvOverride
Auto Trait Implementations§
impl Freeze for EnvOverride
impl RefUnwindSafe for EnvOverride
impl Send for EnvOverride
impl Sync for EnvOverride
impl Unpin for EnvOverride
impl UnsafeUnpin for EnvOverride
impl UnwindSafe for EnvOverride
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.