pub struct WorkQueueSubmit<T> {
pub payload: T,
pub work_id: Option<String>,
pub priority: Option<i64>,
pub tags: Vec<String>,
pub requirements: Vec<String>,
pub not_before_ms: Option<u64>,
pub deadline_ms: Option<u64>,
}Expand description
WorkQueueSubmit data container.
Fields§
§payload: Tpayload field for payload.
work_id: Option<String>work_id field for work id.
priority: Option<i64>priority field for priority.
tags field for tags.
requirements: Vec<String>requirements field for requirements.
not_before_ms: Option<u64>not_before_ms field for not before ms.
deadline_ms: Option<u64>deadline_ms field for deadline ms.
Implementations§
Source§impl<T> WorkQueueSubmit<T>
impl<T> WorkQueueSubmit<T>
Sourcepub fn with_work_id(self, work_id: impl Into<String>) -> Self
pub fn with_work_id(self, work_id: impl Into<String>) -> Self
Updates or reads with_work_id.
Sourcepub fn with_priority(self, priority: i64) -> Self
pub fn with_priority(self, priority: i64) -> Self
Updates or reads with_priority.
Sourcepub fn with_not_before_ms(self, not_before_ms: u64) -> Self
pub fn with_not_before_ms(self, not_before_ms: u64) -> Self
Updates or reads with_not_before_ms.
Trait Implementations§
Source§impl<T: Clone> Clone for WorkQueueSubmit<T>
impl<T: Clone> Clone for WorkQueueSubmit<T>
Source§fn clone(&self) -> WorkQueueSubmit<T>
fn clone(&self) -> WorkQueueSubmit<T>
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<T: Debug> Debug for WorkQueueSubmit<T>
impl<T: Debug> Debug for WorkQueueSubmit<T>
Source§impl<T: PartialEq> PartialEq for WorkQueueSubmit<T>
impl<T: PartialEq> PartialEq for WorkQueueSubmit<T>
impl<T> StructuralPartialEq for WorkQueueSubmit<T>
Auto Trait Implementations§
impl<T> Freeze for WorkQueueSubmit<T>where
T: Freeze,
impl<T> RefUnwindSafe for WorkQueueSubmit<T>where
T: RefUnwindSafe,
impl<T> Send for WorkQueueSubmit<T>where
T: Send,
impl<T> Sync for WorkQueueSubmit<T>where
T: Sync,
impl<T> Unpin for WorkQueueSubmit<T>where
T: Unpin,
impl<T> UnsafeUnpin for WorkQueueSubmit<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WorkQueueSubmit<T>where
T: UnwindSafe,
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