pub struct TaskRow {
pub id: String,
pub kind: TaskKind,
pub status: TaskStatus,
pub created_at: i64,
pub updated_at: i64,
pub params_json: String,
pub result_json: Option<String>,
pub error: Option<String>,
pub cancellation_requested: bool,
pub owner_pid: Option<i64>,
}Expand description
Row shape returned by query helpers.
Fields§
§id: String§kind: TaskKind§status: TaskStatus§created_at: i64§updated_at: i64§params_json: String§result_json: Option<String>§error: Option<String>§cancellation_requested: bool§owner_pid: Option<i64>Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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