pub struct WorkQueueClaimOptions {
pub command_id: Option<String>,
pub queue_id: Option<String>,
pub idempotency_key: Option<String>,
pub worker_id: String,
pub requested_work_ids: Vec<String>,
pub limit: Option<usize>,
pub lease_duration_ms: Option<u64>,
pub now_ms: Option<u64>,
}Expand description
WorkQueueClaimOptions data container.
Fields§
§command_id: Option<String>command_id field for command id.
queue_id: Option<String>queue_id field for queue id.
idempotency_key: Option<String>idempotency_key field for idempotency key.
worker_id: Stringworker_id field for worker id.
requested_work_ids: Vec<String>requested_work_ids field for requested work ids.
limit: Option<usize>limit field for limit.
lease_duration_ms: Option<u64>lease_duration_ms field for lease duration ms.
now_ms: Option<u64>now_ms field for now ms.
Implementations§
Source§impl WorkQueueClaimOptions
impl WorkQueueClaimOptions
Sourcepub fn command_id(self, command_id: impl Into<String>) -> Self
pub fn command_id(self, command_id: impl Into<String>) -> Self
Updates or reads command_id.
Sourcepub fn requested_work_ids(
self,
ids: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn requested_work_ids( self, ids: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Updates or reads requested_work_ids.
Sourcepub fn idempotency_key(self, idempotency_key: impl Into<String>) -> Self
pub fn idempotency_key(self, idempotency_key: impl Into<String>) -> Self
Updates or reads idempotency_key.
Trait Implementations§
Source§impl Clone for WorkQueueClaimOptions
impl Clone for WorkQueueClaimOptions
Source§fn clone(&self) -> WorkQueueClaimOptions
fn clone(&self) -> WorkQueueClaimOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkQueueClaimOptions
impl Debug for WorkQueueClaimOptions
Source§impl PartialEq for WorkQueueClaimOptions
impl PartialEq for WorkQueueClaimOptions
impl Eq for WorkQueueClaimOptions
impl StructuralPartialEq for WorkQueueClaimOptions
Auto Trait Implementations§
impl Freeze for WorkQueueClaimOptions
impl RefUnwindSafe for WorkQueueClaimOptions
impl Send for WorkQueueClaimOptions
impl Sync for WorkQueueClaimOptions
impl Unpin for WorkQueueClaimOptions
impl UnsafeUnpin for WorkQueueClaimOptions
impl UnwindSafe for WorkQueueClaimOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.