pub struct Task {
pub id: u32,
pub task_id: TaskId,
pub name: TaskName,
pub task_type: TaskType,
pub status: TaskStatus,
pub owner: UserId,
pub acknowledged: bool,
pub result: Option<String>,
pub related_document: Option<String>,
}Expand description
A paperless task.
Fields§
§id: u32Unique identifier of the task.
task_id: TaskIdThe Celery-ID of the task.
name: TaskNameThe name/kind of the task.
task_type: TaskTypeThe type of the task.
status: TaskStatusThe status of the task.
owner: UserIdThe user who owns the task.
acknowledged: boolWhether the task has been acknowledged.
result: Option<String>The result of the task, if any.
The ID of the related document, if any.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
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 Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
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