pub enum Secret {
Value(String),
Env(String),
}Expand description
A value resolved at runtime: either a literal baked into the config or a
reference to an environment variable read when the pipeline runs. Deferring
resolution is what lets a compiled config travel without its secrets — a
literal is carried as-is, an Env reference carries only the
variable name, and the real value is read in the environment that runs it.
Variants§
Value(String)
A literal value, stored verbatim.
Env(String)
Read from this environment variable at resolution time.
Trait Implementations§
Source§impl Debug for Secret
Redacted, so a debug-printed config never leaks a literal. An Env reference
shows its variable name (not a secret); a literal shows ***.
impl Debug for Secret
Redacted, so a debug-printed config never leaks a literal. An Env reference
shows its variable name (not a secret); a literal shows ***.
Source§impl<'de> Deserialize<'de> for Secret
impl<'de> Deserialize<'de> for Secret
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Secret, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Secret, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Secret
impl Serialize for Secret
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Secret
impl RefUnwindSafe for Secret
impl Send for Secret
impl Sync for Secret
impl Unpin for Secret
impl UnsafeUnpin for Secret
impl UnwindSafe for Secret
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