pub struct QueuedJob {
pub id: String,
pub name: String,
pub payload: Value,
pub attempts: u32,
}Expand description
A job that has been placed on the queue and is ready for processing.
Fields§
§id: StringUnique identifier for this job instance.
name: StringThe job type name (used to look up the handler).
payload: ValueThe JSON payload associated with this job.
attempts: u32Number of times this job has been attempted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueuedJob
impl RefUnwindSafe for QueuedJob
impl Send for QueuedJob
impl Sync for QueuedJob
impl Unpin for QueuedJob
impl UnsafeUnpin for QueuedJob
impl UnwindSafe for QueuedJob
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