pub enum Source {
Literal(String),
EnvPassthrough {
var: String,
fallback: Option<String>,
},
Uri {
uri: String,
fallback: Option<String>,
},
}Expand description
The source a variable resolves from (§4.1 line types 1–5).
Variants§
Literal(String)
A direct literal passthrough (PORT=8080).
EnvPassthrough
Read from the execution environment (${env:NAME}), with optional fallback.
Fields
Uri
A vault coordinate URI (secret:…), with optional fallback.
Trait Implementations§
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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