#[non_exhaustive]pub enum EnvironmentValue {
Literal(ProtectedString),
Host,
Unset,
}Expand description
Source of an environment variable’s value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Literal(ProtectedString)
A literal plain or sensitive value.
Host
Resolve the value from an explicit caller-provided host environment provider.
Unset
Ensure the variable is absent.
Trait Implementations§
Source§impl Clone for EnvironmentValue
impl Clone for EnvironmentValue
Source§fn clone(&self) -> EnvironmentValue
fn clone(&self) -> EnvironmentValue
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 EnvironmentValue
impl Debug for EnvironmentValue
impl Eq for EnvironmentValue
Source§impl PartialEq for EnvironmentValue
impl PartialEq for EnvironmentValue
impl StructuralPartialEq for EnvironmentValue
Auto Trait Implementations§
impl Freeze for EnvironmentValue
impl RefUnwindSafe for EnvironmentValue
impl Send for EnvironmentValue
impl Sync for EnvironmentValue
impl Unpin for EnvironmentValue
impl UnsafeUnpin for EnvironmentValue
impl UnwindSafe for EnvironmentValue
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