pub struct Job {
pub code: String,
pub title: String,
pub job_name: String,
pub job_id: String,
pub state: String,
pub launch: Option<DateTime<Utc>>,
pub task_id: i64,
}Expand description
A job (app run) entry returned by Client::jobs.
Wraps the server’s batch-job representation. The task_id field links
back to the underlying task that can be polled via Client::task_info.
Fields§
§code: StringApp code (e.g. "edgefirst-validator:2.9.5").
title: StringDisplay title from the app definition.
job_name: StringUser-supplied job label provided at job_run time.
job_id: StringCloud-batch job identifier (e.g. AWS Batch job ID). Opaque string.
state: StringCloud-batch state (e.g. "RUNNING", "SUCCEEDED", "FAILED").
launch: Option<DateTime<Utc>>Job launch timestamp. Optional in case the server omits it for some states.
task_id: i64The Studio task id linked to this job. Use with Client::task_info.
The server emits this as Go int64; negative values are clamped to 0
when converting to TaskID via the task_id() accessor.
Implementations§
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
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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