pub struct Job {Show 18 fields
pub id: u64,
pub name: String,
pub status: JobStatus,
pub stage: String,
pub ref_name: String,
pub sha: Option<String>,
pub created_at: DateTime<Utc>,
pub started_at: Option<DateTime<Utc>>,
pub finished_at: Option<DateTime<Utc>>,
pub duration: Option<f64>,
pub queued_duration: Option<f64>,
pub web_url: String,
pub user: Option<JobUser>,
pub runner: Option<JobRunner>,
pub allow_failure: bool,
pub tag_list: Vec<String>,
pub artifacts: Vec<Artifact>,
pub coverage: Option<f64>,
}Expand description
A CI/CD job within a pipeline.
Jobs are individual units of work in a pipeline, such as building, testing, or deploying code.
Fields§
§id: u64Unique job identifier
name: StringJob name as defined in .gitlab-ci.yml
status: JobStatusCurrent status of the job
stage: StringPipeline stage the job belongs to
ref_name: StringGit reference (branch or tag) the job ran on
sha: Option<String>Git commit SHA the job ran on
created_at: DateTime<Utc>When the job was created
started_at: Option<DateTime<Utc>>When the job started running
finished_at: Option<DateTime<Utc>>When the job finished
duration: Option<f64>Duration of job execution in seconds
queued_duration: Option<f64>Time spent queued before execution in seconds
web_url: StringWeb URL to view the job in GitLab UI
user: Option<JobUser>User who triggered the job
runner: Option<JobRunner>Runner that executed the job
allow_failure: boolWhether the job can be retried
tag_list: Vec<String>Tag list for the job
artifacts: Vec<Artifact>Artifacts associated with this job
coverage: Option<f64>Coverage percentage for this job
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
Source§fn 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 StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnwindSafe for Job
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more