#[non_exhaustive]pub enum EnvironmentValue {
Literal(ProtectedString),
Deferred(DeferredExpression),
UnresolvedSource {
source_format: Identifier,
expression: ProtectedString,
},
Required,
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, never executable source expression syntax.
Deferred(DeferredExpression)
Explicit service-execution environment lookup expression.
UnresolvedSource
Opaque authored source intent, preserved only by a matching source-format exporter.
Fields
§
source_format: IdentifierExplicit native format identity; no source grammar is interpreted by the model.
§
expression: ProtectedStringProtected authored expression, never a resolved literal value.
Required
A named value withheld from this migration artifact; the target operator must supply it.
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§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