pub enum RequiredChecksAnswer {
NotHosted,
Unreadable {
reason: String,
},
Answered {
base: String,
checks: RequiredChecks,
},
}Expand description
What an identity’s host says it requires before a merge.
Three answers, and none collapses into another for the reason a release probe’s
do not: a consumer that reads “nothing required” stops waiting on a check, and
one that reads “unreadable” knows it has not been told. Whether an answered
list is complete is crate::RequiredChecks’s own question — a host protects a
branch from more than one source, and a credential may be refused one of them.
Variants§
NotHosted
The identity is not hosted anywhere this build answers for, so no host answers for it at all.
Unreadable
The host was asked and refused, or the base could not be read.
Answered
The host answered about this base.
Fields
§
checks: RequiredChecksWhat it said, and which of its sources went unconsulted.
Trait Implementations§
Source§impl Clone for RequiredChecksAnswer
impl Clone for RequiredChecksAnswer
Source§impl Debug for RequiredChecksAnswer
impl Debug for RequiredChecksAnswer
impl Eq for RequiredChecksAnswer
Source§impl PartialEq for RequiredChecksAnswer
impl PartialEq for RequiredChecksAnswer
impl StructuralPartialEq for RequiredChecksAnswer
Auto Trait Implementations§
impl Freeze for RequiredChecksAnswer
impl RefUnwindSafe for RequiredChecksAnswer
impl Send for RequiredChecksAnswer
impl Sync for RequiredChecksAnswer
impl Unpin for RequiredChecksAnswer
impl UnsafeUnpin for RequiredChecksAnswer
impl UnwindSafe for RequiredChecksAnswer
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,
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.