[][src]Struct xio_jobset::Condition

pub struct Condition {
    pub message: String,
    pub description: String,
    pub command_type: String,
    pub exit_job: bool,
    pub parameters: IndexMap<String, String>,
}

A condition which gets checked while a command is running.

Fields

message: String

A human-readable message describing the condition match case.

description: String

The description of the condition.

command_type: String

The condition command type.

This identifies a command by it's string id which needs to be defined in the XIO commandset that gets used for compilation.

exit_job: bool

When the condition is met:

  • When true, the job gets stopped with the ::xio_webapi::JobStoppedReason::ExitCriterionMatched reason.
  • When false, continue job execution at the next command.
parameters: IndexMap<String, String>

The parameters assignments.

The keys are the parameter string identifiers as defined in the XIO commandset definition for the command. The values reference the string identifier of the definition in the ParameterSet layers of the job set.

Trait Implementations

impl ExtractDescriptions for Condition[src]

type Descriptions = ConditionDescription

The type of the extracted descriptions.

impl Clone for Condition[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Condition[src]

impl PartialEq<Condition> for Condition[src]

impl Eq for Condition[src]

impl Debug for Condition[src]

impl Serialize for Condition[src]

impl<'de> Deserialize<'de> for Condition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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