Struct xio_jobset::Condition
source · pub struct Condition {
pub caption: String,
pub command_type: String,
pub exit_job: bool,
pub parameters: BTreeMap<String, String>,
}
Expand description
A condition which gets checked while a command is running.
Fields
The caption 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: BTreeMap<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
sourceimpl<'de> Deserialize<'de> for Condition
impl<'de> Deserialize<'de> for Condition
sourcefn 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
sourceimpl ExtractCaptions for Condition
impl ExtractCaptions for Condition
impl Eq for Condition
impl StructuralEq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more