pub struct ReservedJob {
pub id: String,
pub queue: String,
pub job_type: String,
pub payload: Value,
pub options: JobOptions,
pub attempts: u32,
pub trace_parent: Option<String>,
pub membership: Membership,
}Expand description
A job a worker reserved: what QueueStore::reserve
returns.
Fields§
§id: StringThe job id.
queue: StringThe queue.
job_type: StringThe job type.
payload: ValueThe job value as JSON.
options: JobOptionsThe options it was dispatched with.
attempts: u32How many attempts started, including the one that is starting.
trace_parent: Option<String>The traceparent recorded at dispatch (see NewJob::trace_parent).
membership: MembershipThe batch and operation the job belongs to (see
NewJob::membership).
Trait Implementations§
Source§impl Clone for ReservedJob
impl Clone for ReservedJob
Source§impl Debug for ReservedJob
impl Debug for ReservedJob
Source§impl<'de> Deserialize<'de> for ReservedJob
impl<'de> Deserialize<'de> for ReservedJob
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
Source§impl PartialEq for ReservedJob
impl PartialEq for ReservedJob
Source§impl Serialize for ReservedJob
impl Serialize for ReservedJob
impl StructuralPartialEq for ReservedJob
Auto Trait Implementations§
impl Forget for ReservedJob
impl Freeze for ReservedJob
impl RefUnwindSafe for ReservedJob
impl Send for ReservedJob
impl Sync for ReservedJob
impl Unpin for ReservedJob
impl UnsafeUnpin for ReservedJob
impl UnwindSafe for ReservedJob
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ValueFor<Option<T>> for T
impl<T> ValueFor<Option<T>> for T
Source§fn into_value_for(self) -> Option<T>
fn into_value_for(self) -> Option<T>
The value as the column’s type.