pub struct PoolerTemplateSpecInitContainersEnv {
pub name: String,
pub value: Option<String>,
pub value_from: Option<PoolerTemplateSpecInitContainersEnvValueFrom>,
}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<PoolerTemplateSpecInitContainersEnvValueFrom>Source for the environment variable’s value. Cannot be used if value is not empty.
Trait Implementations§
source§impl Clone for PoolerTemplateSpecInitContainersEnv
impl Clone for PoolerTemplateSpecInitContainersEnv
source§fn clone(&self) -> PoolerTemplateSpecInitContainersEnv
fn clone(&self) -> PoolerTemplateSpecInitContainersEnv
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 Default for PoolerTemplateSpecInitContainersEnv
impl Default for PoolerTemplateSpecInitContainersEnv
source§fn default() -> PoolerTemplateSpecInitContainersEnv
fn default() -> PoolerTemplateSpecInitContainersEnv
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PoolerTemplateSpecInitContainersEnv
impl<'de> Deserialize<'de> for PoolerTemplateSpecInitContainersEnv
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 JsonSchema for PoolerTemplateSpecInitContainersEnv
impl JsonSchema for PoolerTemplateSpecInitContainersEnv
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl RefUnwindSafe for PoolerTemplateSpecInitContainersEnv
impl Send for PoolerTemplateSpecInitContainersEnv
impl Sync for PoolerTemplateSpecInitContainersEnv
impl Unpin for PoolerTemplateSpecInitContainersEnv
impl UnwindSafe for PoolerTemplateSpecInitContainersEnv
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