pub struct ProcessedJob {
pub job_id: String,
pub job_data: Value,
pub success: bool,
pub output: Option<String>,
pub error: Option<String>,
}Expand description
Result of processing a single job via QueueExecutor::process_one.
Fields§
§job_id: StringThe job ID.
job_data: ValueThe raw job data as JSON (can be deserialized into the handler type).
success: boolWhether the job succeeded.
output: Option<String>Output from the job (if any).
error: Option<String>Error message (if the job failed).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessedJob
impl RefUnwindSafe for ProcessedJob
impl Send for ProcessedJob
impl Sync for ProcessedJob
impl Unpin for ProcessedJob
impl UnsafeUnpin for ProcessedJob
impl UnwindSafe for ProcessedJob
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