pub struct JobStateRecord {
pub id: String,
pub name: String,
pub status: JobStateStatus,
pub progress: Option<u8>,
pub detail: Option<String>,
pub created_at: i64,
pub updated_at: i64,
}Expand description
Persisted state of a background job.
Fields§
§id: StringUnique identifier for the job.
name: StringHuman-readable name describing the job.
status: JobStateStatusCurrent lifecycle status of the job.
progress: Option<u8>Completion progress as a percentage (0–100), if available.
detail: Option<String>Optional detail message providing additional status information.
created_at: i64Unix timestamp (seconds) when the job was created.
updated_at: i64Unix timestamp (seconds) of the most recent status update.
Trait Implementations§
Source§impl Clone for JobStateRecord
impl Clone for JobStateRecord
Source§fn clone(&self) -> JobStateRecord
fn clone(&self) -> JobStateRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JobStateRecord
impl Debug for JobStateRecord
Source§impl<'de> Deserialize<'de> for JobStateRecord
impl<'de> Deserialize<'de> for JobStateRecord
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 JobStateRecord
impl RefUnwindSafe for JobStateRecord
impl Send for JobStateRecord
impl Sync for JobStateRecord
impl Unpin for JobStateRecord
impl UnsafeUnpin for JobStateRecord
impl UnwindSafe for JobStateRecord
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