Struct SopRunDetail
pub struct SopRunDetail {Show 13 fields
pub run_id: String,
pub sop_name: String,
pub status: SopRunStatus,
pub current_step: u32,
pub total_steps: u32,
pub started_at: String,
pub completed_at: Option<String>,
pub waiting_since: Option<String>,
pub trigger_source: String,
pub trigger_topic: Option<String>,
pub active: bool,
pub failure_reason: Option<String>,
pub steps: Vec<SopStepDetail>,
}Expand description
Full detail for one run as exposed over RPC (sops/run-detail) — an
explicit projection, not the persisted SopRun.
Policy at this response boundary, applied independently of what any storage path did earlier:
- free-text fields that can carry model or tool content (step output, tool arguments/output/error, the trigger topic) pass through the credential scrubber on the way out;
- fields no consuming view reads are excluded rather than redacted — the raw trigger payload, the untrusted-framing marker, gate revision bookkeeping, structured tool output payloads, and savings counters are not on this struct, so a future serializer change cannot leak them.
Fields§
§run_id: String§sop_name: String§status: SopRunStatus§current_step: u32§total_steps: u32§started_at: String§completed_at: Option<String>§waiting_since: Option<String>§trigger_source: StringWhere the run’s trigger came from (manual, a channel, cron, …).
trigger_topic: Option<String>The trigger’s routing topic, scrubbed; the raw payload is excluded.
active: boolTrue while the run is live rather than a retained terminal record.
failure_reason: Option<String>Why the run failed, scrubbed. This is the run-level cause the engine retains, not a step’s output: a run can fail before any step result exists — an input-schema rejection finishes the run straight from validation — and then this is the only explanation the response carries.
steps: Vec<SopStepDetail>Implementations§
Source§impl SopRunDetail
impl SopRunDetail
pub fn from_run(run: &SopRun, active: bool) -> SopRunDetail
Trait Implementations§
Source§impl Clone for SopRunDetail
impl Clone for SopRunDetail
Source§fn clone(&self) -> SopRunDetail
fn clone(&self) -> SopRunDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SopRunDetail
impl Debug for SopRunDetail
Source§impl<'de> Deserialize<'de> for SopRunDetail
impl<'de> Deserialize<'de> for SopRunDetail
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SopRunDetail, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SopRunDetail, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SopRunDetail
impl Serialize for SopRunDetail
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SopRunDetail
impl RefUnwindSafe for SopRunDetail
impl Send for SopRunDetail
impl Sync for SopRunDetail
impl Unpin for SopRunDetail
impl UnsafeUnpin for SopRunDetail
impl UnwindSafe for SopRunDetail
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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