pub struct CheckSuite { /* private fields */ }
Expand description
Check suite
When someone pushes code to a repository, GitHub creates a check suite for the last commit. A check suite is a collection of the check runs created by a single GitHub App for a specific commit. Check suites summarize the status and conclusion of the check runs that a suite includes.
Read more: https://docs.github.com/en/rest/guides/getting-started-with-the-checks-api
Implementations§
Source§impl CheckSuite
impl CheckSuite
Sourcepub fn id(&self) -> CheckSuiteId
pub fn id(&self) -> CheckSuiteId
Returns the check suite’s id.
Sourcepub fn head_branch(&self) -> &GitRef
pub fn head_branch(&self) -> &GitRef
Returns the check suite’s head branch.
Sourcepub fn status(&self) -> CheckRunStatus
pub fn status(&self) -> CheckRunStatus
Returns the check suite’s status
Sourcepub fn conclusion(&self) -> Option<CheckRunConclusion>
pub fn conclusion(&self) -> Option<CheckRunConclusion>
Returns the check suite’s conclusion.
Sourcepub fn pull_requests(&self) -> &Vec<PullRequest>
pub fn pull_requests(&self) -> &Vec<PullRequest>
Returns the check suite’s pull requests.
Sourcepub fn created_at(&self) -> &DateTime<Utc>
pub fn created_at(&self) -> &DateTime<Utc>
Returns the date when the check suite was created.
Sourcepub fn updated_at(&self) -> &DateTime<Utc>
pub fn updated_at(&self) -> &DateTime<Utc>
Returns the date when the check suite was last updated.
Trait Implementations§
Source§impl Clone for CheckSuite
impl Clone for CheckSuite
Source§fn clone(&self) -> CheckSuite
fn clone(&self) -> CheckSuite
Returns a duplicate of the value. Read more
1.0.0 · 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 CheckSuite
impl Debug for CheckSuite
Source§impl<'de> Deserialize<'de> for CheckSuite
impl<'de> Deserialize<'de> for CheckSuite
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
Source§impl Display for CheckSuite
impl Display for CheckSuite
Source§impl PartialEq for CheckSuite
impl PartialEq for CheckSuite
Source§impl Serialize for CheckSuite
impl Serialize for CheckSuite
impl Eq for CheckSuite
impl StructuralPartialEq for CheckSuite
Auto Trait Implementations§
impl Freeze for CheckSuite
impl RefUnwindSafe for CheckSuite
impl Send for CheckSuite
impl Sync for CheckSuite
impl Unpin for CheckSuite
impl UnwindSafe for CheckSuite
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,
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.