pub enum EnvVarStatus {
Resolved(EnvSource),
Defaulted {
defaults: Vec<String>,
},
Missing,
}Expand description
Resolution status of a single referenced environment variable.
Variants§
Resolved(EnvSource)
Set to a non-empty value, resolved from the carried source.
Defaulted
Unset, but every reference supplies a default fallback.
Missing
Unset (or empty) and at least one reference has no default.
Trait Implementations§
Source§impl Clone for EnvVarStatus
impl Clone for EnvVarStatus
Source§fn clone(&self) -> EnvVarStatus
fn clone(&self) -> EnvVarStatus
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 EnvVarStatus
impl Debug for EnvVarStatus
impl Eq for EnvVarStatus
Source§impl PartialEq for EnvVarStatus
impl PartialEq for EnvVarStatus
Source§fn eq(&self, other: &EnvVarStatus) -> bool
fn eq(&self, other: &EnvVarStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnvVarStatus
Auto Trait Implementations§
impl Freeze for EnvVarStatus
impl RefUnwindSafe for EnvVarStatus
impl Send for EnvVarStatus
impl Sync for EnvVarStatus
impl Unpin for EnvVarStatus
impl UnsafeUnpin for EnvVarStatus
impl UnwindSafe for EnvVarStatus
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
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request