Enum datamodel_renderer::value::Env
source · pub enum Env<'a> {
FromVar(Text<&'a str>),
Value(Text<&'a str>),
}
Expand description
A value that can optionally be fetched from an environment variable.
Variants§
FromVar(Text<&'a str>)
Represents env("VAR")
, where var
is the tuple value. The
value is fetched from an env var of the same name.
Value(Text<&'a str>)
Value directly written to the file, not using an env var.
Implementations§
Trait Implementations§
source§impl<'a> From<&'a StringFromEnvVar> for Env<'a>
impl<'a> From<&'a StringFromEnvVar> for Env<'a>
source§fn from(other: &'a StringFromEnvVar) -> Self
fn from(other: &'a StringFromEnvVar) -> Self
Converts to this type from the input type.
impl<'a> Copy for Env<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Env<'a>
impl<'a> Send for Env<'a>
impl<'a> Sync for Env<'a>
impl<'a> Unpin for Env<'a>
impl<'a> UnwindSafe for Env<'a>
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