Struct automatons_github::resource::CheckRun
source · [−]pub struct CheckRun { /* private fields */ }
Expand description
Check run
A check run is an individual test that is part of a check suite. Each run includes a status and conclusion.
Implementations
sourceimpl CheckRun
impl CheckRun
sourcepub fn id(&self) -> CheckRunId
pub fn id(&self) -> CheckRunId
Returns the check run’s id.
sourcepub fn name(&self) -> &CheckRunName
pub fn name(&self) -> &CheckRunName
Returns the check run’s name.
sourcepub fn external_id(&self) -> &str
pub fn external_id(&self) -> &str
Returns the check run’s external id.
sourcepub fn details_url(&self) -> &Url
pub fn details_url(&self) -> &Url
Returns the URL to the check run’s details.
sourcepub fn status(&self) -> CheckRunStatus
pub fn status(&self) -> CheckRunStatus
Returns the check run’s status.
sourcepub fn conclusion(&self) -> Option<CheckRunConclusion>
pub fn conclusion(&self) -> Option<CheckRunConclusion>
Returns the check run’s conclusion.
sourcepub fn started_at(&self) -> &DateTime<Utc>
pub fn started_at(&self) -> &DateTime<Utc>
Returns the date when the check run was started.
sourcepub fn completed_at(&self) -> &Option<DateTime<Utc>>
pub fn completed_at(&self) -> &Option<DateTime<Utc>>
Returns the date when the check run was completed.
sourcepub fn output(&self) -> &Option<CheckRunOutput>
pub fn output(&self) -> &Option<CheckRunOutput>
Returns the check run’s output.
sourcepub fn check_suite(&self) -> &Field<MinimalCheckSuite, CheckSuite>
pub fn check_suite(&self) -> &Field<MinimalCheckSuite, CheckSuite>
Returns the check run’s check suite.
sourcepub fn pull_requests(&self) -> &Vec<PullRequest>
pub fn pull_requests(&self) -> &Vec<PullRequest>
Returns the check run’s pull requests.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for CheckRun
impl<'de> Deserialize<'de> for CheckRun
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
impl Eq for CheckRun
impl StructuralEq for CheckRun
impl StructuralPartialEq for CheckRun
Auto Trait Implementations
impl RefUnwindSafe for CheckRun
impl Send for CheckRun
impl Sync for CheckRun
impl Unpin for CheckRun
impl UnwindSafe for CheckRun
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.