pub struct JobRequest {
pub queue: String,
pub payload: Value,
}Expand description
Input to a queue handler. The queue field names the queue
the job came from (also the macro’s name); payload is the
journaled JSON-shaped input the handler will operate on.
Fields§
§queue: StringQueue name (matches the queue!() macro’s name = ...).
payload: ValueJournaled job input.
Trait Implementations§
Source§impl Clone for JobRequest
impl Clone for JobRequest
Source§fn clone(&self) -> JobRequest
fn clone(&self) -> JobRequest
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 moreAuto Trait Implementations§
impl Freeze for JobRequest
impl RefUnwindSafe for JobRequest
impl Send for JobRequest
impl Sync for JobRequest
impl Unpin for JobRequest
impl UnsafeUnpin for JobRequest
impl UnwindSafe for JobRequest
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