pub struct SecretEnvSource {
pub name: String,
pub optional: Option<bool>,
}
Expand description
SecretEnvSource selects a Secret to populate the environment variables with.
The contents of the target Secret’s Data field will represent the key-value pairs as environment variables.
Fields§
§name: String
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
optional: Option<bool>
Specify whether the Secret must be defined
Trait Implementations§
Source§impl Clone for SecretEnvSource
impl Clone for SecretEnvSource
Source§fn clone(&self) -> SecretEnvSource
fn clone(&self) -> SecretEnvSource
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SecretEnvSource
impl Debug for SecretEnvSource
Source§impl DeepMerge for SecretEnvSource
impl DeepMerge for SecretEnvSource
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for SecretEnvSource
impl Default for SecretEnvSource
Source§fn default() -> SecretEnvSource
fn default() -> SecretEnvSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecretEnvSource
impl<'de> Deserialize<'de> for SecretEnvSource
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
Source§impl PartialEq for SecretEnvSource
impl PartialEq for SecretEnvSource
Source§impl Serialize for SecretEnvSource
impl Serialize for SecretEnvSource
impl StructuralPartialEq for SecretEnvSource
Auto Trait Implementations§
impl Freeze for SecretEnvSource
impl RefUnwindSafe for SecretEnvSource
impl Send for SecretEnvSource
impl Sync for SecretEnvSource
impl Unpin for SecretEnvSource
impl UnwindSafe for SecretEnvSource
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