pub struct TryTaskDefinition {
pub try_: Map<String, TaskDefinition>,
pub catch: ErrorCatcherDefinition,
pub common: TaskDefinitionFields,
}Expand description
Represents the definition of a task used to try one or more subtasks, and to catch/handle the errors that can potentially be raised during execution
Fields§
§try_: Map<String, TaskDefinition>Gets/sets a name/definition map of the tasks to try running
catch: ErrorCatcherDefinitionGets/sets the object used to define the errors to catch
common: TaskDefinitionFieldsGets/sets the task’s common fields
Implementations§
Source§impl TryTaskDefinition
impl TryTaskDefinition
Sourcepub fn new(
try_: Map<String, TaskDefinition>,
catch: ErrorCatcherDefinition,
) -> Self
pub fn new( try_: Map<String, TaskDefinition>, catch: ErrorCatcherDefinition, ) -> Self
Initializes a new TryTaskDefintion
Trait Implementations§
Source§impl Clone for TryTaskDefinition
impl Clone for TryTaskDefinition
Source§fn clone(&self) -> TryTaskDefinition
fn clone(&self) -> TryTaskDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TryTaskDefinition
impl Debug for TryTaskDefinition
Source§impl Default for TryTaskDefinition
impl Default for TryTaskDefinition
Source§fn default() -> TryTaskDefinition
fn default() -> TryTaskDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TryTaskDefinition
impl<'de> Deserialize<'de> for TryTaskDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TryTaskDefinition
impl PartialEq for TryTaskDefinition
Source§fn eq(&self, other: &TryTaskDefinition) -> bool
fn eq(&self, other: &TryTaskDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TryTaskDefinition
impl Serialize for TryTaskDefinition
impl StructuralPartialEq for TryTaskDefinition
Auto Trait Implementations§
impl Freeze for TryTaskDefinition
impl RefUnwindSafe for TryTaskDefinition
impl Send for TryTaskDefinition
impl Sync for TryTaskDefinition
impl Unpin for TryTaskDefinition
impl UnsafeUnpin for TryTaskDefinition
impl UnwindSafe for TryTaskDefinition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more