#[non_exhaustive]pub enum ChecksVerdict {
Pending {
waiting: Vec<String>,
},
Passed,
PassedWithSkipped {
skipped: Vec<String>,
},
Failed {
failed: Vec<String>,
},
NoneRequired,
}Expand description
What the required checks on a change request’s head say, by the rules a publication’s watch reads them by.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pending
Something required has not settled: no run yet, still running, or ended with no verdict (cancelled, stale).
Passed
Every required check passed.
PassedWithSkipped
Every required check passed or was skipped, and these were skipped — which is never read as passed.
Failed
A required check failed.
NoneRequired
The base requires nothing, by the host’s complete answer.
Trait Implementations§
Source§impl Clone for ChecksVerdict
impl Clone for ChecksVerdict
Source§impl Debug for ChecksVerdict
impl Debug for ChecksVerdict
Source§impl<'de> Deserialize<'de> for ChecksVerdict
impl<'de> Deserialize<'de> for ChecksVerdict
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 ChecksVerdict
Source§impl PartialEq for ChecksVerdict
impl PartialEq for ChecksVerdict
Source§impl Serialize for ChecksVerdict
impl Serialize for ChecksVerdict
impl StructuralPartialEq for ChecksVerdict
Auto Trait Implementations§
impl Freeze for ChecksVerdict
impl RefUnwindSafe for ChecksVerdict
impl Send for ChecksVerdict
impl Sync for ChecksVerdict
impl Unpin for ChecksVerdict
impl UnsafeUnpin for ChecksVerdict
impl UnwindSafe for ChecksVerdict
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.