pub enum ValidateOutcome {
Skipped,
Passed(ValidationResult),
PassedWithWarnings(ValidationResult),
Blocked(ValidationResult),
Quarantine(ValidationResult),
BlockedAndQuarantine(ValidationResult),
}Expand description
The outcome of the VALIDATE phase after applying the on_failure policy.
Variants§
Skipped
No validation command configured — validation is skipped.
Passed(ValidationResult)
Validation passed (all commands exited 0).
PassedWithWarnings(ValidationResult)
Validation failed but policy is Warn — merge may continue.
Blocked(ValidationResult)
Validation failed and policy blocks the merge.
Quarantine(ValidationResult)
Validation failed and policy requests quarantine.
BlockedAndQuarantine(ValidationResult)
Validation failed and policy blocks + quarantines.
Implementations§
Source§impl ValidateOutcome
impl ValidateOutcome
Sourcepub const fn may_proceed(&self) -> bool
pub const fn may_proceed(&self) -> bool
Returns true if the merge should proceed (passed, skipped, or warn).
Sourcepub const fn needs_quarantine(&self) -> bool
pub const fn needs_quarantine(&self) -> bool
Returns true if a quarantine workspace should be created.
Sourcepub const fn result(&self) -> Option<&ValidationResult>
pub const fn result(&self) -> Option<&ValidationResult>
Extract the validation result, if any.
Trait Implementations§
Source§impl Clone for ValidateOutcome
impl Clone for ValidateOutcome
Source§fn clone(&self) -> ValidateOutcome
fn clone(&self) -> ValidateOutcome
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidateOutcome
impl Debug for ValidateOutcome
Source§impl PartialEq for ValidateOutcome
impl PartialEq for ValidateOutcome
impl Eq for ValidateOutcome
impl StructuralPartialEq for ValidateOutcome
Auto Trait Implementations§
impl Freeze for ValidateOutcome
impl RefUnwindSafe for ValidateOutcome
impl Send for ValidateOutcome
impl Sync for ValidateOutcome
impl Unpin for ValidateOutcome
impl UnsafeUnpin for ValidateOutcome
impl UnwindSafe for ValidateOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.