pub struct ChainFailure {
pub error: String,
pub failed_stage_idx: u32,
pub elapsed_stages: u32,
pub elapsed_ms: u64,
pub stage_error: String,
}Expand description
Structured error payload returned in the 502 response body when a chain stage fails mid-run. Allows UIs to show actionable retry hints (e.g., “stage 2 of 5 failed — retry from here”).
Fields§
§error: StringHuman-readable summary of where the failure landed.
failed_stage_idx: u32Zero-based index of the stage whose render returned Err.
elapsed_stages: u32Number of stages that completed successfully before the failure.
elapsed_ms: u64Cumulative generation time across the completed stages, in ms.
stage_error: StringInner error message from the orchestrator (format!("{e:#}")).
Trait Implementations§
Source§impl Clone for ChainFailure
impl Clone for ChainFailure
Source§fn clone(&self) -> ChainFailure
fn clone(&self) -> ChainFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ChainFailure
impl ComposeSchema for ChainFailure
Source§impl Debug for ChainFailure
impl Debug for ChainFailure
Source§impl<'de> Deserialize<'de> for ChainFailure
impl<'de> Deserialize<'de> for ChainFailure
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 Serialize for ChainFailure
impl Serialize for ChainFailure
Auto Trait Implementations§
impl Freeze for ChainFailure
impl RefUnwindSafe for ChainFailure
impl Send for ChainFailure
impl Sync for ChainFailure
impl Unpin for ChainFailure
impl UnsafeUnpin for ChainFailure
impl UnwindSafe for ChainFailure
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