Trait SecretEnvSourceExt

Source
pub trait SecretEnvSourceExt: Sized {
    // Required methods
    fn secret_name(name: impl ToString) -> Self;
    fn optional(self, yes: bool) -> Self;

    // Provided method
    fn required(self) -> Self { ... }
}
Expand description

Builders for corev1::SecretEnvSource objects

Required Methods§

Source

fn secret_name(name: impl ToString) -> Self

Constructs corev1::SecretEnvSource object from secret of this name

Source

fn optional(self, yes: bool) -> Self

Specifies whether the Secret must be defined

Provided Methods§

Source

fn required(self) -> Self

Marks this Secret as required (equivalent to calling .optional(false))

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§