Trait PodSpecExt

Source
pub trait PodSpecExt {
    // Required methods
    fn container(container: Container) -> Self;
    fn containers(containers: impl IntoIterator<Item = Container>) -> Self;
    fn service_account_name(self, name: impl ToString) -> Self;
    fn image_pull_secret(self, name: impl ToString) -> Self;
    fn volumes(self, volumes: impl IntoIterator<Item = Volume>) -> Self;
    fn node_selector(
        self,
        node_selector: impl IntoIterator<Item = (impl ToString, impl ToString)>,
    ) -> Self;
}

Required Methods§

Source

fn container(container: Container) -> Self

Source

fn containers(containers: impl IntoIterator<Item = Container>) -> Self

Source

fn service_account_name(self, name: impl ToString) -> Self

Source

fn image_pull_secret(self, name: impl ToString) -> Self

Source

fn volumes(self, volumes: impl IntoIterator<Item = Volume>) -> Self

Source

fn node_selector( self, node_selector: impl IntoIterator<Item = (impl ToString, 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.

Implementors§