pub struct RequiredChecks {
pub checks: BTreeSet<String>,
pub unconsulted: BTreeMap<ProtectionSource, String>,
}Expand description
What a host requires before a merge into a branch, and how much of the host that answer covers.
Fields§
§checks: BTreeSet<String>The names, from every source that answered.
unconsulted: BTreeMap<ProtectionSource, String>Each protection source the host holds that could not be read, with the
host’s reason. Empty means every source answered and checks is the whole
list; otherwise checks is what the sources that did answer require, and an
empty checks is not “nothing is required”.
Implementations§
Trait Implementations§
Source§impl Clone for RequiredChecks
impl Clone for RequiredChecks
Source§impl Debug for RequiredChecks
impl Debug for RequiredChecks
Source§impl<'de> Deserialize<'de> for RequiredChecks
impl<'de> Deserialize<'de> for RequiredChecks
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 RequiredChecks
Source§impl PartialEq for RequiredChecks
impl PartialEq for RequiredChecks
Source§impl Serialize for RequiredChecks
impl Serialize for RequiredChecks
impl StructuralPartialEq for RequiredChecks
Auto Trait Implementations§
impl Freeze for RequiredChecks
impl RefUnwindSafe for RequiredChecks
impl Send for RequiredChecks
impl Sync for RequiredChecks
impl Unpin for RequiredChecks
impl UnsafeUnpin for RequiredChecks
impl UnwindSafe for RequiredChecks
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.