Trait PodExt

Source
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§

Source

fn new(name: impl ToString) -> Self

Creats new corev1::Pod object

Source

fn with_labels( name: impl ToString, labels: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self

Creates new corev1::Pod object with given labels

Source

fn spec(self, spec: PodSpec) -> Self

Sets spec

Source

fn container(self, container: Container) -> Self

Sets this pod container

Source

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.

Implementors§