#[non_exhaustive]pub struct OperationRow {
pub id: OperationId,
pub run: RunName,
pub op: Op,
pub queued_at: String,
pub started_at: Option<String>,
pub ended: Option<Ended>,
pub cancel_requested: bool,
pub owner: Owner,
pub resumed_from: Option<OperationId>,
}Expand description
An operation of the journal.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: OperationIdIts id.
run: RunNameIts run.
op: OpWhat it is.
queued_at: StringWhen it was queued (journaled).
started_at: Option<String>When it started; none while it waits in a queue.
ended: Option<Ended>Its end; none while it runs, or when its process died before it ended.
cancel_requested: boolWhether a cancel was asked for.
owner: OwnerThe process that runs it.
resumed_from: Option<OperationId>The operation this one recovered, when it found one unfinished.
Trait Implementations§
Source§impl Clone for OperationRow
impl Clone for OperationRow
Source§impl Debug for OperationRow
impl Debug for OperationRow
Source§impl<'de> Deserialize<'de> for OperationRow
impl<'de> Deserialize<'de> for OperationRow
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 OperationRow
Source§impl PartialEq for OperationRow
impl PartialEq for OperationRow
Source§impl Serialize for OperationRow
impl Serialize for OperationRow
impl StructuralPartialEq for OperationRow
Auto Trait Implementations§
impl Forget for OperationRow
impl Freeze for OperationRow
impl Move for OperationRow
impl RefUnwindSafe for OperationRow
impl Send for OperationRowwhere
RawVecInner: Send,
impl Sync for OperationRowwhere
RawVecInner: Sync,
impl Unpin for OperationRow
impl UnsafeUnpin for OperationRow
impl UnwindSafe for OperationRowwhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.