IoArgoprojWorkflowV1alpha1DagTaskBuilder

Struct IoArgoprojWorkflowV1alpha1DagTaskBuilder 

Source
pub struct IoArgoprojWorkflowV1alpha1DagTaskBuilder { /* private fields */ }
Expand description

Implementations§

Source§

impl IoArgoprojWorkflowV1alpha1DagTaskBuilder

Source

pub fn arguments( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Arguments>, ) -> &mut Self

Arguments are the parameter and artifact arguments to the template

Source

pub fn continue_on( &mut self, value: Option<IoArgoprojWorkflowV1alpha1ContinueOn>, ) -> &mut Self

ContinueOn makes argo to proceed with the following step even if this step fails. Errors and Failed states can be specified

Source

pub fn dependencies(&mut self, value: Vec<String>) -> &mut Self

Dependencies are name of other targets which this depends on

Source

pub fn depends(&mut self, value: Option<String>) -> &mut Self

Depends are name of other targets which this depends on

Source

pub fn hooks( &mut self, value: HashMap<String, IoArgoprojWorkflowV1alpha1LifecycleHook>, ) -> &mut Self

Hooks hold the lifecycle hook which is invoked at lifecycle of task, irrespective of the success, failure, or error status of the primary task

Source

pub fn inline( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Template>, ) -> &mut Self

Inline is the template. Template must be empty if this is declared (and vice-versa).

Source

pub fn name(&mut self, value: String) -> &mut Self

Name is the name of the target

Source

pub fn on_exit(&mut self, value: Option<String>) -> &mut Self

OnExit is a template reference which is invoked at the end of the template, irrespective of the success, failure, or error of the primary template. DEPRECATED: Use Hooks[exit].Template instead.

Source

pub fn template(&mut self, value: Option<String>) -> &mut Self

Name of template to execute

Source

pub fn template_ref( &mut self, value: Option<IoArgoprojWorkflowV1alpha1TemplateRef>, ) -> &mut Self

TemplateRef is the reference to the template resource to execute.

Source

pub fn when(&mut self, value: Option<String>) -> &mut Self

When is an expression in which the task should conditionally execute

Source

pub fn with_items( &mut self, value: Vec<IoArgoprojWorkflowV1alpha1Item>, ) -> &mut Self

WithItems expands a task into multiple parallel tasks from the items in the list

Source

pub fn with_param(&mut self, value: Option<String>) -> &mut Self

WithParam expands a task into multiple parallel tasks from the value in the parameter, which is expected to be a JSON list.

Source

pub fn with_sequence( &mut self, value: Option<IoArgoprojWorkflowV1alpha1Sequence>, ) -> &mut Self

WithSequence expands a task into a numeric sequence

Source

pub fn build( &self, ) -> Result<IoArgoprojWorkflowV1alpha1DagTask, IoArgoprojWorkflowV1alpha1DagTaskBuilderError>

Builds a new IoArgoprojWorkflowV1alpha1DagTask.

§Errors

If a required field has not been initialized.

Trait Implementations§

Source§

impl Clone for IoArgoprojWorkflowV1alpha1DagTaskBuilder

Source§

fn clone(&self) -> IoArgoprojWorkflowV1alpha1DagTaskBuilder

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for IoArgoprojWorkflowV1alpha1DagTaskBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.