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§
Sourcefn value(name: impl ToString, value: impl ToString) -> Self
fn value(name: impl ToString, value: impl ToString) -> Self
Set an env var name
with a given value
Sourcefn metadata_name(name: impl ToString) -> Self
fn metadata_name(name: impl ToString) -> Self
Set an env var name
that points to a pod’s name
fn metadata_namespace(name: impl ToString) -> Self
fn metadata_uid(name: impl ToString) -> Self
Sourcefn spec_nodename(name: impl ToString) -> Self
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
Sourcefn spec_service_account_name(name: impl ToString) -> Self
fn spec_service_account_name(name: impl ToString) -> Self
Set an env var name
that points to the requested ServiceAccountName for this pod
fn status_host_ip(name: impl ToString) -> Self
fn status_pod_ip(name: impl ToString) -> Self
fn status_pod_ips(name: impl ToString) -> Self
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.