pub struct RunOutput {
pub run_id: String,
pub status: String,
pub error: Option<String>,
pub nodes: Vec<Value>,
pub variants: i16,
pub outputs: Vec<VariantOutput>,
}Expand description
Result of GET /v1/workflows/runs/{id}/output.
Always exposes a uniform outputs array with one entry per variant
(default 1). Iterate outputs rather than branching on variants.
Fields§
§run_id: String§status: String§error: Option<String>§nodes: Vec<Value>§variants: i16§outputs: Vec<VariantOutput>Implementations§
Source§impl RunOutput
impl RunOutput
Sourcepub fn first_output(&self) -> Option<&Value>
pub fn first_output(&self) -> Option<&Value>
Convenience for single-variant runs: outputs[0].output.
Sourcepub fn all_artifacts(&self) -> impl Iterator<Item = &RunArtifact>
pub fn all_artifacts(&self) -> impl Iterator<Item = &RunArtifact>
Flat iterator over artifacts across every variant.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunOutput
impl<'de> Deserialize<'de> for RunOutput
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
Auto Trait Implementations§
impl Freeze for RunOutput
impl RefUnwindSafe for RunOutput
impl Send for RunOutput
impl Sync for RunOutput
impl Unpin for RunOutput
impl UnsafeUnpin for RunOutput
impl UnwindSafe for RunOutput
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