pub struct Execution {Show 21 fields
pub id: ExecutionId,
pub capability: String,
pub title: String,
pub state: ExecutionState,
pub created_at: String,
pub started_at: Option<String>,
pub finished_at: Option<String>,
pub duration_ms: Option<u64>,
pub input: Value,
pub output: Option<Value>,
pub error: Option<ExecutionError>,
pub progress: Option<ProgressView>,
pub steps: Vec<StepView>,
pub diagnostics: Vec<ExecutionDiagnostic>,
pub last_sequence: u64,
pub event_count: u64,
pub events_truncated: bool,
pub cancellable: bool,
pub actor: Actor,
pub repository: RepositoryRef,
pub correlation_id: String,
}Expand description
One execution, as every transport answers it.
This is the whole of what a client may know. It is produced under the store’s lock, so
a reader never sees a state and an output that disagree: an execution that says
succeeded carries its output in the same snapshot, and one that says failed carries
its error.
Fields§
§id: ExecutionIdThe identity.
capability: StringThe capability that ran, by its canonical id.
title: StringThat capability’s title, so a list needs no second lookup.
state: ExecutionStateWhere it is.
created_at: StringWhen it was accepted, RFC 3339 in UTC.
started_at: Option<String>When the handler was entered.
finished_at: Option<String>When it reached a final state.
duration_ms: Option<u64>How long it ran, in milliseconds, once it has finished.
input: ValueThe input it was given, with every value the input schema marks sensitive replaced.
output: Option<Value>What the handler returned, for a succeeded execution and never before.
error: Option<ExecutionError>Why it failed, for a failed execution and never before.
progress: Option<ProgressView>The last progress the handler reported.
steps: Vec<StepView>The steps it entered, in order.
diagnostics: Vec<ExecutionDiagnostic>The findings it reported.
last_sequence: u64The sequence number of the last event: the cursor a client subscribes from.
event_count: u64How many events it has produced, including the ones no longer retained.
events_truncated: boolWhether the retained event history has lost its oldest entries to the bound.
cancellable: boolWhether asking to cancel this execution will do anything: the capability’s policy.
actor: ActorWho asked for it.
repository: RepositoryRefWhich repository it ran against.
correlation_id: StringThe id used in this process’s logs and tracing spans for this execution; the execution id itself, carried under the name a reader of a log expects.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Execution
impl<'de> Deserialize<'de> for Execution
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>,
impl Eq for Execution
Source§impl JsonSchema for Execution
impl JsonSchema for Execution
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Execution
Auto Trait Implementations§
impl Freeze for Execution
impl RefUnwindSafe for Execution
impl Send for Execution
impl Sync for Execution
impl Unpin for Execution
impl UnsafeUnpin for Execution
impl UnwindSafe for Execution
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§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
key and return true if they are equal.