pub struct Task {Show 20 fields
pub id: String,
pub title: String,
pub description: Option<String>,
pub status: String,
pub priority: Priority,
pub worker_id: Option<String>,
pub claimed_at: Option<i64>,
pub needed_tags: Vec<String>,
pub wanted_tags: Vec<String>,
pub tags: Vec<String>,
pub points: Option<i32>,
pub time_estimate_ms: Option<i64>,
pub time_actual_ms: Option<i64>,
pub started_at: Option<i64>,
pub completed_at: Option<i64>,
pub current_thought: Option<String>,
pub cost_usd: f64,
pub metrics: [i64; 8],
pub created_at: i64,
pub updated_at: i64,
}Expand description
A task in the task graph.
Fields§
§id: String§title: String§description: Option<String>§status: String§priority: Priority§worker_id: Option<String>§claimed_at: Option<i64>§points: Option<i32>§time_estimate_ms: Option<i64>§time_actual_ms: Option<i64>§started_at: Option<i64>§completed_at: Option<i64>§current_thought: Option<String>§cost_usd: f64§metrics: [i64; 8]Fixed array of 8 integer metrics [metric_0..metric_7], aggregated on update
created_at: i64§updated_at: i64Trait 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more