pub struct IoK8sApiCoreV1EnvVar {
pub name: String,
pub value: Option<String>,
pub value_from: Option<IoK8sApiCoreV1EnvVarSource>,
}Expand description
EnvVar represents an environment variable present in a Container.
Fields§
§name: StringName of the environment variable. Must be a C_IDENTIFIER.
value: Option<String>Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. “$$(VAR_NAME)” will produce the string literal “$(VAR_NAME)”. Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to “”.
value_from: Option<IoK8sApiCoreV1EnvVarSource>Source for the environment variable’s value. Cannot be used if value is not empty.
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1EnvVar
impl Clone for IoK8sApiCoreV1EnvVar
Source§fn clone(&self) -> IoK8sApiCoreV1EnvVar
fn clone(&self) -> IoK8sApiCoreV1EnvVar
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 Debug for IoK8sApiCoreV1EnvVar
impl Debug for IoK8sApiCoreV1EnvVar
Source§impl Default for IoK8sApiCoreV1EnvVar
impl Default for IoK8sApiCoreV1EnvVar
Source§fn default() -> IoK8sApiCoreV1EnvVar
fn default() -> IoK8sApiCoreV1EnvVar
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IoK8sApiCoreV1EnvVar
impl<'de> Deserialize<'de> for IoK8sApiCoreV1EnvVar
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<&IoK8sApiCoreV1EnvVar> for IoK8sApiCoreV1EnvVar
impl From<&IoK8sApiCoreV1EnvVar> for IoK8sApiCoreV1EnvVar
Source§fn from(value: &IoK8sApiCoreV1EnvVar) -> Self
fn from(value: &IoK8sApiCoreV1EnvVar) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1EnvVar
impl RefUnwindSafe for IoK8sApiCoreV1EnvVar
impl Send for IoK8sApiCoreV1EnvVar
impl Sync for IoK8sApiCoreV1EnvVar
impl Unpin for IoK8sApiCoreV1EnvVar
impl UnwindSafe for IoK8sApiCoreV1EnvVar
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