pub struct Transition {
pub seq: u64,
pub number: u64,
pub event: TaskEvent,
pub from: TaskState,
pub to: TaskState,
pub by: TaskActorV1,
pub at: UtcTimestamp,
pub reason: Option<String>,
pub worker: Option<String>,
}Expand description
One transition: who moved the task from which state to which, and when.
Fields§
§seq: u64§number: u64§event: TaskEvent§from: TaskState§to: TaskState§by: TaskActorV1§at: UtcTimestamp§reason: Option<String>§worker: Option<String>The worker of a submitted result (its notice is not sent to it), so a notice re-sent from the journal reads as the first one.
Trait Implementations§
Source§impl Clone for Transition
impl Clone for Transition
Source§impl Debug for Transition
impl Debug for Transition
Source§impl<'de> Deserialize<'de> for Transition
impl<'de> Deserialize<'de> for Transition
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 Transition
Source§impl From<&Transition> for Change
impl From<&Transition> for Change
Source§fn from(t: &Transition) -> Self
fn from(t: &Transition) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Transition
impl PartialEq for Transition
Source§impl Serialize for Transition
impl Serialize for Transition
impl StructuralPartialEq for Transition
Auto Trait Implementations§
impl Forget for Transition
impl Freeze for Transition
impl Move for Transition
impl RefUnwindSafe for Transition
impl Send for Transition
impl Sync for Transition
impl Unpin for Transition
impl UnsafeUnpin for Transition
impl UnwindSafe for Transition
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