Trait DeploymentExt

Source
pub trait DeploymentExt: ResourceBuilder {
    // Required methods
    fn new(name: impl ToString) -> Self;
    fn with_labels(
        name: impl ToString,
        labels: impl IntoIterator<Item = (impl ToString, impl ToString)>,
    ) -> Self;
    fn paused(self, yes: bool) -> Self;
    fn progress_deadline_seconds(self, seconds: i32) -> Self;
    fn replicas(self, replicas: i32) -> Self;
    fn revision_history_limit(self, limit: i32) -> Self;
    fn selector(self, selector: LabelSelector) -> Self;
    fn match_labels(
        self,
        match_labels: impl IntoIterator<Item = (impl ToString, impl ToString)>,
    ) -> Self;
    fn strategy(self, strategy: DeploymentStrategy) -> Self;
    fn template(self, template: PodTemplateSpec) -> Self;
    fn pod(self, pod: PodSpec) -> Self;
}

Required Methods§

Source

fn new(name: impl ToString) -> Self

Source

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

Source

fn paused(self, yes: bool) -> Self

Source

fn progress_deadline_seconds(self, seconds: i32) -> Self

Source

fn replicas(self, replicas: i32) -> Self

Source

fn revision_history_limit(self, limit: i32) -> Self

Source

fn selector(self, selector: LabelSelector) -> Self

Source

fn match_labels( self, match_labels: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self

Source

fn strategy(self, strategy: DeploymentStrategy) -> Self

Source

fn template(self, template: PodTemplateSpec) -> Self

Source

fn pod(self, pod: PodSpec) -> 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§