Skip to main content

TaskDefinitionBuilder

Struct TaskDefinitionBuilder 

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

Primary entry point for building workflow task definitions.

Supports all task types: call, do, emit, for, fork, listen, raise, run, set, switch, try, and wait.

Implementations§

Source§

impl TaskDefinitionBuilder

Source

pub fn new() -> Self

Source

pub fn call(&mut self, function: &str) -> &mut CallFunctionTaskDefinitionBuilder

Source

pub fn do_(&mut self) -> &mut DoTaskDefinitionBuilder

Source

pub fn for_(&mut self) -> &mut ForTaskDefinitionBuilder

Source

pub fn fork(&mut self) -> &mut ForkTaskDefinitionBuilder

Source

pub fn listen(&mut self) -> &mut ListenTaskDefinitionBuilder

Source

pub fn raise(&mut self) -> &mut RaiseTaskDefinitionBuilder

Source

pub fn run(&mut self) -> &mut RunTaskDefinitionBuilder

Source

pub fn set(&mut self) -> &mut SetTaskDefinitionBuilder

Source

pub fn switch(&mut self) -> &mut SwitchTaskDefinitionBuilder

Source

pub fn try_(&mut self) -> &mut TryTaskDefinitionBuilder

Source

pub fn wait( &mut self, duration: OneOfDurationOrIso8601Expression, ) -> &mut WaitTaskDefinitionBuilder

Source

pub fn emit<F>(&mut self, setup: F) -> &mut EmitTaskDefinitionBuilder

Creates an emit task that produces a workflow event.

Source

pub fn build(self) -> TaskDefinition

Builds the final TaskDefinition, panicking if no task type was configured.

Trait Implementations§

Source§

impl Default for TaskDefinitionBuilder

Source§

fn default() -> TaskDefinitionBuilder

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