Struct automatons_github::resource::CheckSuite
source · [−]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
sourceimpl 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
sourceimpl Clone for CheckSuite
impl Clone for CheckSuite
sourcefn clone(&self) -> CheckSuite
fn clone(&self) -> CheckSuite
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CheckSuite
impl Debug for CheckSuite
sourceimpl<'de> Deserialize<'de> for CheckSuite
impl<'de> Deserialize<'de> for CheckSuite
sourcefn 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
sourceimpl Display for CheckSuite
impl Display for CheckSuite
sourceimpl PartialEq<CheckSuite> for CheckSuite
impl PartialEq<CheckSuite> for CheckSuite
sourcefn eq(&self, other: &CheckSuite) -> bool
fn eq(&self, other: &CheckSuite) -> bool
sourceimpl Serialize for CheckSuite
impl Serialize for CheckSuite
impl Eq for CheckSuite
impl StructuralEq for CheckSuite
impl StructuralPartialEq for CheckSuite
Auto Trait Implementations
impl RefUnwindSafe for CheckSuite
impl Send for CheckSuite
impl Sync for CheckSuite
impl Unpin for CheckSuite
impl UnwindSafe for CheckSuite
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.