pub trait PodExt {
// Required methods
fn new(name: impl ToString) -> Self;
fn with_labels(
name: impl ToString,
labels: impl IntoIterator<Item = (impl ToString, impl ToString)>,
) -> Self;
fn spec(self, spec: PodSpec) -> Self;
fn container(self, container: Container) -> Self;
fn containers(self, containers: impl IntoIterator<Item = Container>) -> Self;
}
Required Methods§
Sourcefn with_labels(
name: impl ToString,
labels: impl IntoIterator<Item = (impl ToString, impl ToString)>,
) -> Self
fn with_labels( name: impl ToString, labels: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self
Creates new corev1::Pod
object with given labels
Sourcefn containers(self, containers: impl IntoIterator<Item = Container>) -> Self
fn containers(self, containers: impl IntoIterator<Item = Container>) -> Self
Sets this pod containers
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.