pub struct RunLifecycleState {
pub id: String,
pub status: RunStatus,
pub done_reason: Option<String>,
pub updated_at: u64,
}Expand description
Minimal durable run lifecycle envelope stored at state["__run"].
Fields§
§id: StringCurrent run id associated with this lifecycle record.
status: RunStatusCoarse lifecycle status.
done_reason: Option<String>Optional terminal reason when status=done.
updated_at: u64Last update timestamp (unix millis).
Trait Implementations§
Source§impl Clone for RunLifecycleState
impl Clone for RunLifecycleState
Source§fn clone(&self) -> RunLifecycleState
fn clone(&self) -> RunLifecycleState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RunLifecycleState
impl Debug for RunLifecycleState
Source§impl Default for RunLifecycleState
impl Default for RunLifecycleState
Source§fn default() -> RunLifecycleState
fn default() -> RunLifecycleState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunLifecycleState
impl<'de> Deserialize<'de> for RunLifecycleState
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
Source§impl PartialEq for RunLifecycleState
impl PartialEq for RunLifecycleState
Source§impl Serialize for RunLifecycleState
impl Serialize for RunLifecycleState
Source§impl State for RunLifecycleState
impl State for RunLifecycleState
Source§type Ref<'a> = RunLifecycleStateRef<'a>
type Ref<'a> = RunLifecycleStateRef<'a>
The reference type that provides typed access.
Source§fn state_ref<'a>(
doc: &'a DocCell,
base: Path,
sink: PatchSink<'a>,
) -> Self::Ref<'a>
fn state_ref<'a>( doc: &'a DocCell, base: Path, sink: PatchSink<'a>, ) -> Self::Ref<'a>
Create a state reference at the specified path. Read more
Source§fn from_value(value: &Value) -> TireaResult<Self>
fn from_value(value: &Value) -> TireaResult<Self>
Deserialize this type from a JSON value.
Source§fn to_value(&self) -> TireaResult<Value>
fn to_value(&self) -> TireaResult<Value>
Serialize this type to a JSON value.
Source§fn diff_ops(old: &Self, new: &Self, base_path: &Path) -> TireaResult<Vec<Op>>
fn diff_ops(old: &Self, new: &Self, base_path: &Path) -> TireaResult<Vec<Op>>
Compare two instances and emit minimal ops for changed fields. Read more
Source§fn register_lattice(_registry: &mut LatticeRegistry)
fn register_lattice(_registry: &mut LatticeRegistry)
Register lattice fields into the given registry. Read more
Source§fn lattice_keys() -> &'static [&'static str]
fn lattice_keys() -> &'static [&'static str]
Return the JSON keys of fields annotated with
#[tirea(lattice)]. Read moreSource§impl StateSpec for RunLifecycleState
impl StateSpec for RunLifecycleState
impl Eq for RunLifecycleState
impl StructuralPartialEq for RunLifecycleState
Auto Trait Implementations§
impl Freeze for RunLifecycleState
impl RefUnwindSafe for RunLifecycleState
impl Send for RunLifecycleState
impl Sync for RunLifecycleState
impl Unpin for RunLifecycleState
impl UnwindSafe for RunLifecycleState
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.