pub struct IoK8sApiCoreV1SecretEnvSource {
pub name: Option<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: Option<String>Name of the referent. 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 IoK8sApiCoreV1SecretEnvSource
impl Clone for IoK8sApiCoreV1SecretEnvSource
Source§fn clone(&self) -> IoK8sApiCoreV1SecretEnvSource
fn clone(&self) -> IoK8sApiCoreV1SecretEnvSource
Returns a duplicate 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<'de> Deserialize<'de> for IoK8sApiCoreV1SecretEnvSource
impl<'de> Deserialize<'de> for IoK8sApiCoreV1SecretEnvSource
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 From<&IoK8sApiCoreV1SecretEnvSource> for IoK8sApiCoreV1SecretEnvSource
impl From<&IoK8sApiCoreV1SecretEnvSource> for IoK8sApiCoreV1SecretEnvSource
Source§fn from(value: &IoK8sApiCoreV1SecretEnvSource) -> Self
fn from(value: &IoK8sApiCoreV1SecretEnvSource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1SecretEnvSource
impl RefUnwindSafe for IoK8sApiCoreV1SecretEnvSource
impl Send for IoK8sApiCoreV1SecretEnvSource
impl Sync for IoK8sApiCoreV1SecretEnvSource
impl Unpin for IoK8sApiCoreV1SecretEnvSource
impl UnwindSafe for IoK8sApiCoreV1SecretEnvSource
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