pub enum Condition {
Absent,
Proven,
UnquotedTag(String),
Other(String),
}Expand description
The gate job’s if condition, as far as the reader proves it.
Variants§
Absent
No if key: the job is skipped when a needed job fails.
Proven
always(), or !cancelled() written so that YAML reads it as text:
the job runs when a needed job fails, which is the property the gate
rests on. rust-lang/cargo uses the second deliberately, so that a
manual cancel does not turn the gate red.
UnquotedTag(String)
A scalar opening with !, which YAML reads as a tag rather than as
text, carried verbatim. The forge never sees the expression, so the
workflow does not parse and the check never reports.
Other(String)
Any other expression, carried verbatim: not proven to run on a failed dependency.
Trait Implementations§
impl Eq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnsafeUnpin for Condition
impl UnwindSafe for Condition
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