pub enum EnvValue {
Plain(String),
Reference(String),
Secret(SecretRef),
Generated(GeneratedValue),
FromFile(PathBuf),
}Expand description
Environment variable value.
Variants§
Plain(String)
Plain text value.
Reference(String)
Reference to another env var: ${VAR_NAME}.
Secret(SecretRef)
Reference to a secret: secret://context/key.
Generated(GeneratedValue)
Generated value (e.g., UUID, timestamp).
FromFile(PathBuf)
Value from file.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnvValue
impl<'de> Deserialize<'de> for EnvValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 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