pub struct JobRecord {
pub id: String,
pub name: String,
pub status: JobStatus,
pub progress: Option<u8>,
pub detail: Option<String>,
pub retry: JobRetryMetadata,
pub history: Vec<JobHistoryEntry>,
pub created_at: i64,
pub updated_at: i64,
}Expand description
A complete job record with all metadata and history.
Fields§
§id: StringUnique job identifier.
name: StringHuman-readable job name.
status: JobStatusCurrent job status.
progress: Option<u8>Current progress percentage (0-100).
detail: Option<String>Human-readable detail about the current state.
retry: JobRetryMetadataRetry state for failed jobs.
history: Vec<JobHistoryEntry>Chronological history of state transitions.
created_at: i64Timestamp when the job was created.
updated_at: i64Timestamp of the last state change.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JobRecord
impl RefUnwindSafe for JobRecord
impl Send for JobRecord
impl Sync for JobRecord
impl Unpin for JobRecord
impl UnsafeUnpin for JobRecord
impl UnwindSafe for JobRecord
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