pub struct TaskRow {
pub task_id: String,
pub kind: Option<String>,
pub parent_task: Option<String>,
pub hop: i64,
pub attempt: i64,
pub task_state: TaskState,
pub opened_at: String,
pub settled_at: Option<String>,
}Expand description
One task record, as the task table holds it. The chain columns come from
the delivery envelope’s causality, so a task says who caused it and how deep
it sits without its owner being asked. task_state is the whole answer to
“how did this end”: no session row carries it, and None from ClientStore::task
means this role never opened the task, not that it is in flight.
Fields§
§task_id: String§kind: Option<String>§parent_task: Option<String>§hop: i64§attempt: i64§task_state: TaskState§opened_at: String§settled_at: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskRow
impl<'de> Deserialize<'de> for TaskRow
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 TaskRow
impl StructuralPartialEq for TaskRow
Auto Trait Implementations§
impl Freeze for TaskRow
impl RefUnwindSafe for TaskRow
impl Send for TaskRow
impl Sync for TaskRow
impl Unpin for TaskRow
impl UnsafeUnpin for TaskRow
impl UnwindSafe for TaskRow
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