pub struct QueueBatchEnqueueJob {
pub payload: Vec<u8>,
pub priority: u8,
pub not_before_ms: u64,
pub shard_key: Option<Vec<u8>>,
pub dedup_key: Option<Vec<u8>>,
pub max_attempts: u32,
}Expand description
One job in a batch enqueue (POST /raft/v1/queue/enqueue-batch).
Fields§
§payload: Vec<u8>Opaque job body.
priority: u8Higher values are leased before lower (default 0).
not_before_ms: u64Earliest wall time (unix ms) the job may be leased; 0 = immediately.
shard_key: Option<Vec<u8>>Optional routing key for sharded streams.
dedup_key: Option<Vec<u8>>Idempotency key — retries return the same job_id while the job exists.
max_attempts: u32Maximum delivery attempts before dead letter (0 = unlimited).
Trait Implementations§
Source§impl Clone for QueueBatchEnqueueJob
impl Clone for QueueBatchEnqueueJob
Source§fn clone(&self) -> QueueBatchEnqueueJob
fn clone(&self) -> QueueBatchEnqueueJob
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 QueueBatchEnqueueJob
impl Debug for QueueBatchEnqueueJob
Source§impl<'de> Deserialize<'de> for QueueBatchEnqueueJob
impl<'de> Deserialize<'de> for QueueBatchEnqueueJob
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 QueueBatchEnqueueJob
Source§impl PartialEq for QueueBatchEnqueueJob
impl PartialEq for QueueBatchEnqueueJob
Source§impl Serialize for QueueBatchEnqueueJob
impl Serialize for QueueBatchEnqueueJob
impl StructuralPartialEq for QueueBatchEnqueueJob
Auto Trait Implementations§
impl Freeze for QueueBatchEnqueueJob
impl RefUnwindSafe for QueueBatchEnqueueJob
impl Send for QueueBatchEnqueueJob
impl Sync for QueueBatchEnqueueJob
impl Unpin for QueueBatchEnqueueJob
impl UnsafeUnpin for QueueBatchEnqueueJob
impl UnwindSafe for QueueBatchEnqueueJob
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