pub struct JobEntry {
pub id: JobId,
pub tenant_id: String,
pub job_type: String,
pub payload: Value,
pub status: JobStatus,
pub created_at: DateTime<Utc>,
pub run_at: DateTime<Utc>,
pub attempts: u32,
pub last_error: Option<String>,
pub result: Option<Value>,
}Expand description
A persisted job entry
Fields§
§id: JobId§tenant_id: String§job_type: String§payload: Value§status: JobStatus§created_at: DateTime<Utc>§run_at: DateTime<Utc>§attempts: u32§last_error: Option<String>§result: Option<Value>The output produced by the job once completed
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobEntry
impl<'de> Deserialize<'de> for JobEntry
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 JobEntry
impl RefUnwindSafe for JobEntry
impl Send for JobEntry
impl Sync for JobEntry
impl Unpin for JobEntry
impl UnsafeUnpin for JobEntry
impl UnwindSafe for JobEntry
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