pub struct Task {
pub location_id: LocationId,
pub kind: Kind,
pub title: Title,
pub status: Status,
pub priority: Priority,
pub due_at: DateTime<Utc>,
pub assignment: Assignment,
pub source: Source,
pub completion_evidence: Option<Evidence>,
}Expand description
Assignable unit of resort labor generated from validated operational signals.
Fields§
§location_id: LocationIdLocation id fact promoted into this staff contract.
kind: KindKind fact promoted into this staff contract.
title: TitleTitle fact promoted into this staff contract.
status: StatusStatus fact promoted into this staff contract.
priority: PriorityPriority fact promoted into this staff contract.
due_at: DateTime<Utc>Due at fact promoted into this staff contract.
assignment: AssignmentAssignment fact promoted into this staff contract.
source: SourceSource fact promoted into this staff contract.
completion_evidence: Option<Evidence>Completion evidence fact promoted into this staff contract.
Implementations§
Source§impl Task
impl Task
Sourcepub fn builder() -> TaskBuilder
pub fn builder() -> TaskBuilder
Create an instance of Task using the builder syntax
Source§impl Task
impl Task
Sourcepub fn requires_manager_attention(&self) -> bool
pub fn requires_manager_attention(&self) -> bool
Returns whether priority, status, or safety-sensitive kind should surface to managers.
Sourcepub fn complete_with(self, evidence: Evidence) -> Self
pub fn complete_with(self, evidence: Evidence) -> Self
Marks the task completed with auditable evidence for workflow/read-model closeout.
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
impl Eq for Task
impl StructuralPartialEq for Task
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