pub struct IoK8sApiCoreV1EnvVarBuilder { /* private fields */ }Expand description
Builder for IoK8sApiCoreV1EnvVar.
Implementations§
Source§impl IoK8sApiCoreV1EnvVarBuilder
impl IoK8sApiCoreV1EnvVarBuilder
Sourcepub fn name(&mut self, value: String) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
Name of the environment variable. Must be a C_IDENTIFIER.
Sourcepub fn value(&mut self, value: Option<String>) -> &mut Self
pub fn value(&mut self, value: Option<String>) -> &mut Self
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 “”.
Sourcepub fn value_from(
&mut self,
value: Option<IoK8sApiCoreV1EnvVarSource>,
) -> &mut Self
pub fn value_from( &mut self, value: Option<IoK8sApiCoreV1EnvVarSource>, ) -> &mut Self
Source for the environment variable’s value. Cannot be used if value is not empty.
Sourcepub fn build(
&self,
) -> Result<IoK8sApiCoreV1EnvVar, IoK8sApiCoreV1EnvVarBuilderError>
pub fn build( &self, ) -> Result<IoK8sApiCoreV1EnvVar, IoK8sApiCoreV1EnvVarBuilderError>
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1EnvVarBuilder
impl Clone for IoK8sApiCoreV1EnvVarBuilder
Source§fn clone(&self) -> IoK8sApiCoreV1EnvVarBuilder
fn clone(&self) -> IoK8sApiCoreV1EnvVarBuilder
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 moreAuto Trait Implementations§
impl Freeze for IoK8sApiCoreV1EnvVarBuilder
impl RefUnwindSafe for IoK8sApiCoreV1EnvVarBuilder
impl Send for IoK8sApiCoreV1EnvVarBuilder
impl Sync for IoK8sApiCoreV1EnvVarBuilder
impl Unpin for IoK8sApiCoreV1EnvVarBuilder
impl UnwindSafe for IoK8sApiCoreV1EnvVarBuilder
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