pub struct PullRequestChecks {
pub commit_sha: Option<String>,
pub checks: Vec<PullRequestCheck>,
}Fields§
§commit_sha: Option<String>The commit the checks were reported against.
checks: Vec<PullRequestCheck>Implementations§
Source§impl PullRequestChecks
impl PullRequestChecks
Sourcepub fn required_blocking(&self) -> Vec<&PullRequestCheck>
pub fn required_blocking(&self) -> Vec<&PullRequestCheck>
Whether anything required is not green.
A required check that is still running counts as blocking: the answer to “can this merge” is no, not yet.
pub fn any_failed(&self) -> bool
Trait Implementations§
Source§impl Clone for PullRequestChecks
impl Clone for PullRequestChecks
Source§impl Debug for PullRequestChecks
impl Debug for PullRequestChecks
Source§impl Default for PullRequestChecks
impl Default for PullRequestChecks
Source§impl<'de> Deserialize<'de> for PullRequestChecks
impl<'de> Deserialize<'de> for PullRequestChecks
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
Auto Trait Implementations§
impl Forget for PullRequestChecks
impl Freeze for PullRequestChecks
impl RefUnwindSafe for PullRequestChecks
impl Send for PullRequestChecks
impl Sync for PullRequestChecks
impl Unpin for PullRequestChecks
impl UnsafeUnpin for PullRequestChecks
impl UnwindSafe for PullRequestChecks
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