Struct automatons_github::task::CreateCheckRunInput
source · [−]pub struct CreateCheckRunInput {
pub name: CheckRunName,
pub head_sha: GitSha,
pub details_url: Option<Url>,
pub external_id: Option<String>,
pub status: Option<CheckRunStatus>,
pub started_at: Option<DateTime<Utc>>,
pub conclusion: Option<CheckRunConclusion>,
pub completed_at: Option<DateTime<Utc>>,
pub output: Option<CheckRunOutput>,
}
Expand description
Input for create check run task
The input for the task that creates a check run represents the different parameters that GitHub’s API accepts.
https://docs.github.com/en/rest/checks/runs#create-a-check-run
Fields
name: CheckRunName
The name of the check. For example, “code-coverage”.
head_sha: GitSha
The SHA of the commit.
details_url: Option<Url>
The URL of the integrator’s site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.
external_id: Option<String>
A reference for the run on the integrator’s system.
status: Option<CheckRunStatus>
The current status. queued
by default.
started_at: Option<DateTime<Utc>>
The time that the check run began.
conclusion: Option<CheckRunConclusion>
The final conclusion of the check.
Required if you provide completed_at
or a status of completed
. Providing a conclusion
will automatically set the status parameter to completed
. You cannot change a check run
conclusion to stale
, only GitHub can set this.
completed_at: Option<DateTime<Utc>>
The time the check completed.
output: Option<CheckRunOutput>
Check runs can accept a variety of data in the output object, including a title and summary and can optionally provide descriptive details about the run.
Trait Implementations
sourceimpl Clone for CreateCheckRunInput
impl Clone for CreateCheckRunInput
sourcefn clone(&self) -> CreateCheckRunInput
fn clone(&self) -> CreateCheckRunInput
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for CreateCheckRunInput
impl Debug for CreateCheckRunInput
sourceimpl Hash for CreateCheckRunInput
impl Hash for CreateCheckRunInput
sourceimpl Ord for CreateCheckRunInput
impl Ord for CreateCheckRunInput
sourcefn cmp(&self, other: &CreateCheckRunInput) -> Ordering
fn cmp(&self, other: &CreateCheckRunInput) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<CreateCheckRunInput> for CreateCheckRunInput
impl PartialEq<CreateCheckRunInput> for CreateCheckRunInput
sourcefn eq(&self, other: &CreateCheckRunInput) -> bool
fn eq(&self, other: &CreateCheckRunInput) -> bool
sourceimpl PartialOrd<CreateCheckRunInput> for CreateCheckRunInput
impl PartialOrd<CreateCheckRunInput> for CreateCheckRunInput
sourcefn partial_cmp(&self, other: &CreateCheckRunInput) -> Option<Ordering>
fn partial_cmp(&self, other: &CreateCheckRunInput) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for CreateCheckRunInput
impl Serialize for CreateCheckRunInput
impl Eq for CreateCheckRunInput
impl StructuralEq for CreateCheckRunInput
impl StructuralPartialEq for CreateCheckRunInput
Auto Trait Implementations
impl RefUnwindSafe for CreateCheckRunInput
impl Send for CreateCheckRunInput
impl Sync for CreateCheckRunInput
impl Unpin for CreateCheckRunInput
impl UnwindSafe for CreateCheckRunInput
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
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
key
and return true
if they are equal.