pub struct CompletionEvent {
pub occurrence: String,
pub action: CompletionAction,
pub actor: CompletionActor,
pub reason: Option<String>,
pub discard: bool,
pub prior_status: TaskStatus,
pub prior_hold_reason: Option<String>,
pub prior_block_reason: Option<String>,
pub prior_error: Option<String>,
pub at: Timestamp,
pub run: Option<CompletionRunSnapshot>,
pub unavailable_runs: Vec<String>,
}Expand description
Immutable, occurrence-addressed task completion/reopen audit.
Fields§
§occurrence: StringUnique decision occurrence, also used to identify its completion notice.
action: CompletionActionKind of transition.
actor: CompletionActorDecision origin.
reason: Option<String>Explanation retained verbatim.
discard: boolWhether unfinished work was explicitly discarded.
prior_status: TaskStatusTask status before the decision.
prior_hold_reason: Option<String>Hold explanation before completion cleared active controls.
prior_block_reason: Option<String>Dependency explanation before completion cleared active controls.
prior_error: Option<String>Last run/task failure evidence before the lifecycle decision.
at: TimestampDecision time.
run: Option<CompletionRunSnapshot>Run/PR evidence at that time.
Unknown historical outcomes retained when the owner explicitly discarded.
Trait Implementations§
Source§impl Clone for CompletionEvent
impl Clone for CompletionEvent
Source§impl Debug for CompletionEvent
impl Debug for CompletionEvent
Source§impl<'de> Deserialize<'de> for CompletionEvent
impl<'de> Deserialize<'de> for CompletionEvent
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 CompletionEvent
Source§impl PartialEq for CompletionEvent
impl PartialEq for CompletionEvent
Source§impl Serialize for CompletionEvent
impl Serialize for CompletionEvent
impl StructuralPartialEq for CompletionEvent
Auto Trait Implementations§
impl Forget for CompletionEvent
impl Freeze for CompletionEvent
impl Move for CompletionEvent
impl RefUnwindSafe for CompletionEvent
impl Send for CompletionEvent
impl Sync for CompletionEvent
impl Unpin for CompletionEvent
impl UnsafeUnpin for CompletionEvent
impl UnwindSafe for CompletionEvent
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§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<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