pub struct Parts<Context, IdType = RandomId> {
pub task_id: Option<TaskId<IdType>>,
pub data: Extensions,
pub attempt: Attempt,
pub ctx: Context,
pub status: Status,
pub run_at: u64,
}Expand description
Component parts of a Task
Fields§
§task_id: Option<TaskId<IdType>>The task’s id if allocated
data: ExtensionsThe tasks’s extensions
attempt: AttemptThe tasks’s attempts Keeps track of the number of attempts a task has been worked on
ctx: ContextThe task specific data provided by the backend
status: StatusThe task status
run_at: u64The time a task should be run
Trait Implementations§
Source§impl<'de, Context, IdType> Deserialize<'de> for Parts<Context, IdType>where
Context: Deserialize<'de>,
IdType: Deserialize<'de>,
impl<'de, Context, IdType> Deserialize<'de> for Parts<Context, IdType>where
Context: Deserialize<'de>,
IdType: Deserialize<'de>,
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
Auto Trait Implementations§
impl<Context, IdType> Freeze for Parts<Context, IdType>
impl<Context, IdType = RandomId> !RefUnwindSafe for Parts<Context, IdType>
impl<Context, IdType> Send for Parts<Context, IdType>
impl<Context, IdType> Sync for Parts<Context, IdType>
impl<Context, IdType> Unpin for Parts<Context, IdType>
impl<Context, IdType = RandomId> !UnwindSafe for Parts<Context, IdType>
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