pub struct CreateCheckRunArgs {
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<CheckRunOutputArgs>,
}
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<CheckRunOutputArgs>
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§
Source§impl Clone for CreateCheckRunArgs
impl Clone for CreateCheckRunArgs
Source§fn clone(&self) -> CreateCheckRunArgs
fn clone(&self) -> CreateCheckRunArgs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CreateCheckRunArgs
impl Debug for CreateCheckRunArgs
Source§impl Hash for CreateCheckRunArgs
impl Hash for CreateCheckRunArgs
Source§impl Ord for CreateCheckRunArgs
impl Ord for CreateCheckRunArgs
Source§fn cmp(&self, other: &CreateCheckRunArgs) -> Ordering
fn cmp(&self, other: &CreateCheckRunArgs) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CreateCheckRunArgs
impl PartialEq for CreateCheckRunArgs
Source§impl PartialOrd for CreateCheckRunArgs
impl PartialOrd for CreateCheckRunArgs
Source§impl Serialize for CreateCheckRunArgs
impl Serialize for CreateCheckRunArgs
impl Eq for CreateCheckRunArgs
impl StructuralPartialEq for CreateCheckRunArgs
Auto Trait Implementations§
impl Freeze for CreateCheckRunArgs
impl RefUnwindSafe for CreateCheckRunArgs
impl Send for CreateCheckRunArgs
impl Sync for CreateCheckRunArgs
impl Unpin for CreateCheckRunArgs
impl UnwindSafe for CreateCheckRunArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.