Trait JobExt

Source
pub trait JobExt: ResourceBuilder + Sized {
Show 16 methods // Required methods fn new(name: impl ToString) -> Self; fn with_labels( name: impl ToString, labels: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self; fn active_deadline_seconds(self, seconds: i64) -> Self; fn backoff_limit(self, limit: i32) -> Self; fn completion_mode<'a>(self, mode: impl Into<Option<&'a str>>) -> Self; fn completions(self, completions: i32) -> Self; fn manual_selector(self, yes: bool) -> Self; fn parallelism(self, parallelism: i32) -> Self; fn selector(self, selector: LabelSelector) -> Self; fn match_labels( self, match_labels: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self; fn suspend(self, yes: bool) -> Self; fn template(self, template: PodTemplateSpec) -> Self; fn pod(self, pod: PodSpec) -> Self; fn ttl_seconds_after_finished(self, seconds: i32) -> Self; // Provided methods fn non_indexed(self) -> Self { ... } fn indexed(self) -> 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 active_deadline_seconds(self, seconds: i64) -> Self

Source

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

Source

fn completion_mode<'a>(self, mode: impl Into<Option<&'a str>>) -> Self

Source

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

Source

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

Source

fn parallelism(self, parallelism: 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 suspend(self, yes: bool) -> Self

Source

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

Source

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

Source

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

Provided Methods§

Source

fn non_indexed(self) -> Self

Source

fn indexed(self) -> 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§