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