pub struct Job {Show 23 fields
pub id: i32,
pub run_id: i32,
pub run_url: String,
pub run_attempt: Option<i32>,
pub node_id: String,
pub head_sha: String,
pub url: String,
pub html_url: Option<String>,
pub status: Status,
pub conclusion: Option<Conclusion>,
pub created_at: String,
pub started_at: String,
pub completed_at: Option<String>,
pub name: String,
pub steps: Option<Vec<JobStepsInner>>,
pub check_run_url: String,
pub labels: Vec<String>,
pub runner_id: Option<i32>,
pub runner_name: Option<String>,
pub runner_group_id: Option<i32>,
pub runner_group_name: Option<String>,
pub workflow_name: Option<String>,
pub head_branch: Option<String>,
}
Expand description
Job : Information of a job execution in a workflow run
Fields§
§id: i32
The id of the job.
run_id: i32
The id of the associated workflow run.
run_url: String
§run_attempt: Option<i32>
Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.
node_id: String
§head_sha: String
The SHA of the commit that is being run.
url: String
§html_url: Option<String>
§status: Status
The phase of the lifecycle that the job is currently in.
conclusion: Option<Conclusion>
The outcome of the job.
created_at: String
The time that the job created, in ISO 8601 format.
started_at: String
The time that the job started, in ISO 8601 format.
completed_at: Option<String>
The time that the job finished, in ISO 8601 format.
name: String
The name of the job.
steps: Option<Vec<JobStepsInner>>
Steps in this job.
check_run_url: String
§labels: Vec<String>
Labels for the workflow job. Specified by the "runs_on" attribute in the action’s workflow file.
runner_id: Option<i32>
The ID of the runner to which this job has been assigned. (If a runner hasn’t yet been assigned, this will be null.)
runner_name: Option<String>
The name of the runner to which this job has been assigned. (If a runner hasn’t yet been assigned, this will be null.)
runner_group_id: Option<i32>
The ID of the runner group to which this job has been assigned. (If a runner hasn’t yet been assigned, this will be null.)
runner_group_name: Option<String>
The name of the runner group to which this job has been assigned. (If a runner hasn’t yet been assigned, this will be null.)
workflow_name: Option<String>
The name of the workflow.
head_branch: Option<String>
The name of the current branch.
Implementations§
Source§impl Job
impl Job
Sourcepub fn new(
id: i32,
run_id: i32,
run_url: String,
node_id: String,
head_sha: String,
url: String,
html_url: Option<String>,
status: Status,
conclusion: Option<Conclusion>,
created_at: String,
started_at: String,
completed_at: Option<String>,
name: String,
check_run_url: String,
labels: Vec<String>,
runner_id: Option<i32>,
runner_name: Option<String>,
runner_group_id: Option<i32>,
runner_group_name: Option<String>,
workflow_name: Option<String>,
head_branch: Option<String>,
) -> Job
pub fn new( id: i32, run_id: i32, run_url: String, node_id: String, head_sha: String, url: String, html_url: Option<String>, status: Status, conclusion: Option<Conclusion>, created_at: String, started_at: String, completed_at: Option<String>, name: String, check_run_url: String, labels: Vec<String>, runner_id: Option<i32>, runner_name: Option<String>, runner_group_id: Option<i32>, runner_group_name: Option<String>, workflow_name: Option<String>, head_branch: Option<String>, ) -> Job
Information of a job execution in a workflow run