Skip to main content

ExecutionRecord

Struct ExecutionRecord 

Source
pub struct ExecutionRecord {
    pub status: WorkStatus,
    pub reported_progress_percent: u8,
    pub artifact_ids: BTreeSet<ArtifactId>,
    pub owner: Option<ActorId>,
    pub handoffs: Vec<Handoff>,
    pub releases: Vec<ClaimRelease>,
    pub events: ExecutionEvents,
    pub last_rejection: Option<ReviewRejection>,
    pub attempts: Vec<SubmissionAttempt>,
    pub basis: Vec<DependencyBasis>,
    pub block_reason: Option<String>,
}
Expand description

Execution records protected as one value by reviewed plan changes.

Fields§

§status: WorkStatus

Stored lifecycle; aggregate work has derived completion.

§reported_progress_percent: u8

Owner-reported task execution progress; verification remains a separate condition.

§artifact_ids: BTreeSet<ArtifactId>

Attached evidence identifiers.

§owner: Option<ActorId>

Principal that claimed the task and owns submission.

§handoffs: Vec<Handoff>

Authorized ownership transfers in order; append-only, so every earlier holder stays known.

§releases: Vec<ClaimRelease>

Claims given back before a start, in order; append-only, so a releaser stays a holder.

§events: ExecutionEvents

Execution event times recorded by lifecycle commands.

§last_rejection: Option<ReviewRejection>

Most recent independent rejection; retained across resubmission as review context.

§attempts: Vec<SubmissionAttempt>

Every submission in order; reviews close attempts but never remove or renumber them.

§basis: Vec<DependencyBasis>

Predecessor attempts this task’s execution relies on; append-only, latest per edge applies.

§block_reason: Option<String>

Non-empty reason while the task is blocked.

Implementations§

Source§

impl ExecutionRecord

Source

pub fn latest_recorded_at(&self) -> Option<DateTime<Utc>>

Latest time carried by any lifecycle, ownership, review or basis record of this execution.

An unstarted claim contributes its reservation time; after the start, the start time, which cannot precede the claim, orders the history instead. A backfilled event must not precede anything the task’s history already orders.

Trait Implementations§

Source§

impl Clone for ExecutionRecord

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExecutionRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ExecutionRecord

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ExecutionRecord

Source§

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 ExecutionRecord

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ExecutionRecord

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ExecutionRecord

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.