pub struct QueueJobStatusReply {
pub found: bool,
pub job_id: u64,
pub lifecycle: Option<QueueJobLifecycleWire>,
pub payload_len: u64,
pub priority: u8,
pub leased_worker_node: Option<u64>,
pub leased_worker_instance: Option<u32>,
pub attempts: u32,
pub max_attempts: u32,
pub error: Option<String>,
}Expand description
Metadata for a single job (POST /raft/v1/queue/job-status).
Fields§
§found: booltrue when the job exists (pending, leased, or delayed).
job_id: u64Echo of the requested id.
lifecycle: Option<QueueJobLifecycleWire>Set when Self::found is true.
payload_len: u64Byte length of stored payload.
priority: u8Enqueue priority.
leased_worker_node: Option<u64>Worker node when leased.
leased_worker_instance: Option<u32>Worker instance when leased.
attempts: u32Delivery attempts so far (including the attempt that dead-lettered).
max_attempts: u32Configured retry ceiling (0 = unlimited).
error: Option<String>Set when lookup failed.
Trait Implementations§
Source§impl Clone for QueueJobStatusReply
impl Clone for QueueJobStatusReply
Source§fn clone(&self) -> QueueJobStatusReply
fn clone(&self) -> QueueJobStatusReply
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 moreSource§impl Debug for QueueJobStatusReply
impl Debug for QueueJobStatusReply
Source§impl<'de> Deserialize<'de> for QueueJobStatusReply
impl<'de> Deserialize<'de> for QueueJobStatusReply
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
impl Eq for QueueJobStatusReply
Source§impl PartialEq for QueueJobStatusReply
impl PartialEq for QueueJobStatusReply
Source§impl Serialize for QueueJobStatusReply
impl Serialize for QueueJobStatusReply
impl StructuralPartialEq for QueueJobStatusReply
Auto Trait Implementations§
impl Freeze for QueueJobStatusReply
impl RefUnwindSafe for QueueJobStatusReply
impl Send for QueueJobStatusReply
impl Sync for QueueJobStatusReply
impl Unpin for QueueJobStatusReply
impl UnsafeUnpin for QueueJobStatusReply
impl UnwindSafe for QueueJobStatusReply
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