pub struct EnvValue {
pub raw: String,
pub typed: Value,
}Expand description
An environment variable in both forms interpolation needs.
Two fields rather than one because the two positions want different things. Embedded, the variable is spliced as raw text: parsing it and rendering it back could only ever corrupt it. Whole-string, it is typed, by whatever rule the caller uses for its own inline values — which is the entire consistency argument for typing environment values at all.
Fields§
§raw: StringSpliced verbatim into surrounding text.
typed: ValueSubstituted whole, with its type, when the reference is the whole string.
Trait Implementations§
impl StructuralPartialEq for EnvValue
Auto Trait Implementations§
impl Freeze for EnvValue
impl RefUnwindSafe for EnvValue
impl Send for EnvValue
impl Sync for EnvValue
impl Unpin for EnvValue
impl UnsafeUnpin for EnvValue
impl UnwindSafe for EnvValue
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