pub enum RunIf {
NoneFailed,
AllSucceeded,
}Expand description
A task’s trigger rule: what its upstream edges must have done for it to run (see archive/PROJECT.md, Outcomes, failures and joins). An edge not taken counts as skipped.
Variants§
NoneFailed
Every edge that wasn’t skipped succeeded, and at least one did: skipped when all were
skipped, upstream_failed when one failed.
AllSucceeded
Every edge succeeded: upstream_failed when one failed, otherwise skipped when one
was skipped.
Implementations§
Source§impl RunIf
impl RunIf
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Whether it is the default, RunIf::NoneFailed.
Trait Implementations§
impl Copy for RunIf
Source§impl<'de> Deserialize<'de> for RunIf
impl<'de> Deserialize<'de> for RunIf
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
impl Eq for RunIf
Source§impl JsonSchema for RunIf
impl JsonSchema for RunIf
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for RunIf
Auto Trait Implementations§
impl Freeze for RunIf
impl RefUnwindSafe for RunIf
impl Send for RunIf
impl Sync for RunIf
impl Unpin for RunIf
impl UnsafeUnpin for RunIf
impl UnwindSafe for RunIf
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