pub struct JobView {
pub job: JobId,
pub period: u64,
pub state: JobState,
pub attempts: u32,
pub created_at: UnixTime,
pub next_eligible_at: Option<UnixTime>,
pub outcome: Option<JobOutcome>,
pub resource: Option<String>,
pub sha256: Option<Sha256Digest>,
pub length: Option<u64>,
pub exit_code: Option<i64>,
}Expand description
One job in GET /api/v1/installations/{id}/jobs.
Fields§
§job: JobIdThe job.
period: u64Its period.
state: JobStateIts state.
attempts: u32Attempts counted against the limit of three.
created_at: UnixTimeWhen it was made.
next_eligible_at: Option<UnixTime>When its next attempt may start, if it waits.
outcome: Option<JobOutcome>What its last attempt came to.
resource: Option<String>The result resource’s pod path.
sha256: Option<Sha256Digest>The result resource’s SHA-256.
length: Option<u64>The result resource’s length, in bytes.
exit_code: Option<i64>The last attempt’s exit code, when it exited without a result.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobView
impl<'de> Deserialize<'de> for JobView
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 Eq for JobView
impl StructuralPartialEq for JobView
Auto Trait Implementations§
impl Forget for JobView
impl Freeze for JobView
impl Move for JobView
impl RefUnwindSafe for JobView
impl Send for JobViewwhere
RawVecInner: Send,
impl Sync for JobViewwhere
RawVecInner: Sync,
impl Unpin for JobView
impl UnsafeUnpin for JobView
impl UnwindSafe for JobViewwhere
RawVecInner: UnwindSafe,
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