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

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 of the environment variable. Must be a C_IDENTIFIER.

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 "".

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

Trait Implementations

impl Clone for EnvVar
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for EnvVar
[src]

Formats the value using the given formatter. Read more

impl Default for EnvVar
[src]

Returns the "default value" for a type. Read more

impl PartialEq for EnvVar
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for EnvVar
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for EnvVar

impl Sync for EnvVar