Trait EnvVarExt

Source
pub trait EnvVarExt {
    // Required methods
    fn value(name: impl ToString, value: impl ToString) -> Self;
    fn metadata_name(name: impl ToString) -> Self;
    fn metadata_namespace(name: impl ToString) -> Self;
    fn metadata_uid(name: impl ToString) -> Self;
    fn spec_nodename(name: impl ToString) -> Self;
    fn spec_service_account_name(name: impl ToString) -> Self;
    fn status_host_ip(name: impl ToString) -> Self;
    fn status_pod_ip(name: impl ToString) -> Self;
    fn status_pod_ips(name: impl ToString) -> Self;
    fn field_ref(name: impl ToString, field_path: impl ToString) -> Self;
}
Expand description

Builders for corev1::EnvVar objects

Required Methods§

Source

fn value(name: impl ToString, value: impl ToString) -> Self

Set an env var name with a given value

Source

fn metadata_name(name: impl ToString) -> Self

Set an env var name that points to a pod’s name

Source

fn metadata_namespace(name: impl ToString) -> Self

Source

fn metadata_uid(name: impl ToString) -> Self

Source

fn spec_nodename(name: impl ToString) -> Self

Set an env var name that points to the node which this pod was requested to scheduled on

Source

fn spec_service_account_name(name: impl ToString) -> Self

Set an env var name that points to the requested ServiceAccountName for this pod

Source

fn status_host_ip(name: impl ToString) -> Self

Source

fn status_pod_ip(name: impl ToString) -> Self

Source

fn status_pod_ips(name: impl ToString) -> Self

Source

fn field_ref(name: impl ToString, field_path: impl ToString) -> Self

Set an env var name that points to the selected field in the pod

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§