[][src]Struct k8s_openapi::api::core::v1::EnvVar

pub struct EnvVar {
    pub name: String,
    pub value: Option<String>,
    pub value_from: Option<EnvVarSource>,
}

EnvVar represents an environment variable present in a Container.

Fields

name: String

Name of the environment variable. Must be a C_IDENTIFIER.

value: Option<String>

Variable references $(VAR_NAME) are expanded using the previous 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. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".

value_from: Option<EnvVarSource>

Source for the environment variable's value. Cannot be used if value is not empty.

Trait Implementations

impl Clone for EnvVar[src]

impl Debug for EnvVar[src]

impl Default for EnvVar[src]

impl<'de> Deserialize<'de> for EnvVar[src]

impl PartialEq<EnvVar> for EnvVar[src]

impl Serialize for EnvVar[src]

impl StructuralPartialEq for EnvVar[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.