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
Staff task assembled from source-backed resort work so managers can route labor without guessing.
Fields§
§location_id: LocationIdResort location whose team owns this task.
kind: KindType of labor staff must perform or review.
title: TitleStaff-visible task title used in work queues and manager briefs.
status: StatusCurrent workflow state controlling whether staff can act, wait, or review.
priority: PriorityUrgency used to rank the labor queue for leads and managers.
due_at: DateTime<Utc>Time by which the resort work should be completed or escalated.
assignment: AssignmentStaff member or labor role currently responsible for the work.
source: SourceSource record or workflow event that explains why this task exists.
completion_evidence: Option<Evidence>Optional closeout note proving the task was finished before reports treat it as done.
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.