Struct WorkflowRun

Source
pub struct WorkflowRun {
Show 35 fields pub actor: User, pub artifacts_url: String, pub cancel_url: String, pub check_suite_id: i64, pub check_suite_node_id: String, pub check_suite_url: String, pub conclusion: Option<WorkflowRunConclusion>, pub created_at: DateTime<Utc>, pub display_title: String, pub event: String, pub head_branch: String, pub head_commit: CommitSimple, pub head_repository: RepositoryLite, pub head_sha: String, pub html_url: String, pub id: i64, pub jobs_url: String, pub logs_url: String, pub name: String, pub node_id: String, pub path: String, pub previous_attempt_url: Option<String>, pub pull_requests: Vec<WorkflowRunPullRequestsItem>, pub referenced_workflows: Vec<ReferencedWorkflow>, pub repository: RepositoryLite, pub rerun_url: String, pub run_attempt: i64, pub run_number: i64, pub run_started_at: DateTime<Utc>, pub status: WorkflowRunStatus, pub triggering_actor: User, pub updated_at: DateTime<Utc>, pub url: String, pub workflow_id: i64, pub workflow_url: String,
}
Expand description

WorkflowRun

JSON schema
{
 "title": "Workflow Run",
 "type": "object",
 "required": [
   "actor",
   "artifacts_url",
   "cancel_url",
   "check_suite_id",
   "check_suite_node_id",
   "check_suite_url",
   "conclusion",
   "created_at",
   "display_title",
   "event",
   "head_branch",
   "head_commit",
   "head_repository",
   "head_sha",
   "html_url",
   "id",
   "jobs_url",
   "logs_url",
   "name",
   "node_id",
   "path",
   "previous_attempt_url",
   "pull_requests",
   "repository",
   "rerun_url",
   "run_attempt",
   "run_number",
   "run_started_at",
   "status",
   "triggering_actor",
   "updated_at",
   "url",
   "workflow_id",
   "workflow_url"
 ],
 "properties": {
   "actor": {
     "$ref": "#/definitions/user"
   },
   "artifacts_url": {
     "description": "The URL to the artifacts for the workflow run.",
     "type": "string",
     "format": "uri"
   },
   "cancel_url": {
     "description": "The URL to cancel the workflow run.",
     "type": "string",
     "format": "uri"
   },
   "check_suite_id": {
     "description": "The ID of the associated check suite.",
     "type": "integer"
   },
   "check_suite_node_id": {
     "description": "The node ID of the associated check suite.",
     "type": "string"
   },
   "check_suite_url": {
     "description": "The URL to the associated check suite.",
     "type": "string",
     "format": "uri"
   },
   "conclusion": {
     "type": [
       "string",
       "null"
     ],
     "enum": [
       "success",
       "failure",
       "neutral",
       "cancelled",
       "timed_out",
       "action_required",
       "stale",
       "skipped",
       null
     ]
   },
   "created_at": {
     "type": "string",
     "format": "date-time"
   },
   "display_title": {
     "type": "string"
   },
   "event": {
     "type": "string"
   },
   "head_branch": {
     "type": "string"
   },
   "head_commit": {
     "$ref": "#/definitions/commit-simple"
   },
   "head_repository": {
     "$ref": "#/definitions/repository-lite"
   },
   "head_sha": {
     "description": "The SHA of the head commit that points to the version of the workflow being run.",
     "type": "string"
   },
   "html_url": {
     "type": "string",
     "format": "uri"
   },
   "id": {
     "description": "The ID of the workflow run.",
     "type": "integer"
   },
   "jobs_url": {
     "description": "The URL to the jobs for the workflow run.",
     "type": "string",
     "format": "uri"
   },
   "logs_url": {
     "description": "The URL to download the logs for the workflow run.",
     "type": "string",
     "format": "uri"
   },
   "name": {
     "description": "The name of the workflow run.",
     "type": "string"
   },
   "node_id": {
     "type": "string"
   },
   "path": {
     "description": "The full path of the workflow",
     "type": "string"
   },
   "previous_attempt_url": {
     "description": "The URL to the previous attempted run of this workflow, if one exists.",
     "oneOf": [
       {
         "type": "string",
         "format": "uri"
       },
       {
         "type": "null"
       }
     ]
   },
   "pull_requests": {
     "type": "array",
     "items": {
       "type": "object",
       "required": [
         "base",
         "head",
         "id",
         "number",
         "url"
       ],
       "properties": {
         "base": {
           "type": "object",
           "required": [
             "ref",
             "repo",
             "sha"
           ],
           "properties": {
             "ref": {
               "type": "string"
             },
             "repo": {
               "$ref": "#/definitions/repo-ref"
             },
             "sha": {
               "type": "string"
             }
           },
           "additionalProperties": false
         },
         "head": {
           "type": "object",
           "required": [
             "ref",
             "repo",
             "sha"
           ],
           "properties": {
             "ref": {
               "type": "string"
             },
             "repo": {
               "$ref": "#/definitions/repo-ref"
             },
             "sha": {
               "type": "string"
             }
           },
           "additionalProperties": false
         },
         "id": {
           "type": "number"
         },
         "number": {
           "type": "number"
         },
         "url": {
           "type": "string",
           "format": "uri"
         }
       },
       "additionalProperties": false
     }
   },
   "referenced_workflows": {
     "type": "array",
     "items": {
       "$ref": "#/definitions/referenced-workflow"
     }
   },
   "repository": {
     "$ref": "#/definitions/repository-lite"
   },
   "rerun_url": {
     "description": "The URL to rerun the workflow run.",
     "type": "string",
     "format": "uri"
   },
   "run_attempt": {
     "description": "Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.",
     "type": "integer"
   },
   "run_number": {
     "description": "The auto incrementing run number for the workflow run.",
     "type": "integer"
   },
   "run_started_at": {
     "description": "The start time of the latest run. Resets on re-run.",
     "type": "string",
     "format": "date-time"
   },
   "status": {
     "type": "string",
     "enum": [
       "requested",
       "in_progress",
       "completed",
       "queued",
       "waiting"
     ]
   },
   "triggering_actor": {
     "$ref": "#/definitions/user"
   },
   "updated_at": {
     "type": "string",
     "format": "date-time"
   },
   "url": {
     "description": "The URL to the workflow run.",
     "type": "string",
     "format": "uri"
   },
   "workflow_id": {
     "description": "The ID of the parent workflow.",
     "type": "integer"
   },
   "workflow_url": {
     "description": "The URL to the workflow.",
     "type": "string",
     "format": "uri"
   }
 },
 "additionalProperties": false,
 "$schema": "http://json-schema.org/draft-07/schema"
}

Fields§

§actor: User§artifacts_url: String

The URL to the artifacts for the workflow run.

§cancel_url: String

The URL to cancel the workflow run.

§check_suite_id: i64

The ID of the associated check suite.

§check_suite_node_id: String

The node ID of the associated check suite.

§check_suite_url: String

The URL to the associated check suite.

§conclusion: Option<WorkflowRunConclusion>§created_at: DateTime<Utc>§display_title: String§event: String§head_branch: String§head_commit: CommitSimple§head_repository: RepositoryLite§head_sha: String

The SHA of the head commit that points to the version of the workflow being run.

§html_url: String§id: i64

The ID of the workflow run.

§jobs_url: String

The URL to the jobs for the workflow run.

§logs_url: String

The URL to download the logs for the workflow run.

§name: String

The name of the workflow run.

§node_id: String§path: String

The full path of the workflow

§previous_attempt_url: Option<String>

The URL to the previous attempted run of this workflow, if one exists.

§pull_requests: Vec<WorkflowRunPullRequestsItem>§referenced_workflows: Vec<ReferencedWorkflow>§repository: RepositoryLite§rerun_url: String

The URL to rerun the workflow run.

§run_attempt: i64

Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.

§run_number: i64

The auto incrementing run number for the workflow run.

§run_started_at: DateTime<Utc>

The start time of the latest run. Resets on re-run.

§status: WorkflowRunStatus§triggering_actor: User§updated_at: DateTime<Utc>§url: String

The URL to the workflow run.

§workflow_id: i64

The ID of the parent workflow.

§workflow_url: String

The URL to the workflow.

Implementations§

Trait Implementations§

Source§

impl Clone for WorkflowRun

Source§

fn clone(&self) -> WorkflowRun

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WorkflowRun

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for WorkflowRun

Source§

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 From<&WorkflowRun> for WorkflowRun

Source§

fn from(value: &WorkflowRun) -> Self

Converts to this type from the input type.
Source§

impl From<WorkflowRun> for WorkflowRun

Source§

fn from(value: WorkflowRun) -> Self

Converts to this type from the input type.
Source§

impl Serialize for WorkflowRun

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<WorkflowRun> for WorkflowRun

Source§

type Error = String

The type returned in the event of a conversion error.
Source§

fn try_from(value: WorkflowRun) -> Result<Self, String>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,