pub struct ChangeChecks {
pub checks: Vec<Check>,
pub sources: BTreeSet<CheckSource>,
}Expand description
What a host reports about a change request’s checks, and where it looked.
The sources travel with the checks because a caller deciding whether a change may merge has to be able to tell “these are all the checks” from “these are the workflow checks, and anything a third-party integration posted is invisible to this credential”. Reporting the second as the first is how a merge gets waved through by a check nobody could see.
Fields§
§checks: Vec<Check>The checks themselves.
sources: BTreeSet<CheckSource>Every source consulted to produce them. Never empty: a host that could read none of its sources is a refusal rather than an answer.
Implementations§
Trait Implementations§
Source§impl Clone for ChangeChecks
impl Clone for ChangeChecks
Source§fn clone(&self) -> ChangeChecks
fn clone(&self) -> ChangeChecks
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChangeChecks
impl Debug for ChangeChecks
Source§impl<'de> Deserialize<'de> for ChangeChecks
impl<'de> Deserialize<'de> for ChangeChecks
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 ChangeChecks
Source§impl PartialEq for ChangeChecks
impl PartialEq for ChangeChecks
Source§impl Serialize for ChangeChecks
impl Serialize for ChangeChecks
impl StructuralPartialEq for ChangeChecks
Auto Trait Implementations§
impl Freeze for ChangeChecks
impl RefUnwindSafe for ChangeChecks
impl Send for ChangeChecks
impl Sync for ChangeChecks
impl Unpin for ChangeChecks
impl UnsafeUnpin for ChangeChecks
impl UnwindSafe for ChangeChecks
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,
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§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.