pub struct SseChainCompleteEvent {Show 19 fields
pub video: String,
pub format: OutputFormat,
pub width: u32,
pub height: u32,
pub frames: u32,
pub fps: u32,
pub thumbnail: Option<String>,
pub gif_preview: Option<String>,
pub has_audio: bool,
pub duration_ms: Option<u64>,
pub audio_sample_rate: Option<u32>,
pub audio_channels: Option<u32>,
pub stage_count: u32,
pub gpu: Option<usize>,
pub generation_time_ms: Option<u64>,
pub script: ChainScript,
pub vram_estimate: Option<VramEstimate>,
pub filename: Option<String>,
pub metadata: Option<Box<OutputMetadata>>,
}Expand description
SSE completion event for a successful chain run. Streamed as the final
data: frame under the event: complete SSE type. The payload is
base64-encoded to stay JSON-safe; clients decode it into VideoData.
This is a sibling to crate::types::SseCompleteEvent rather than an
extension so image/video vs. chain completion shapes stay independent
and can evolve separately.
Fields§
§video: StringBase64-encoded stitched video bytes (format per format field), or an
empty string when X-Mold-SSE-Payload: metadata-only was requested.
format: OutputFormat§width: u32§height: u32§frames: u32§fps: u32§thumbnail: Option<String>Base64-encoded first-frame PNG thumbnail.
gif_preview: Option<String>Base64-encoded animated GIF preview (always emitted for gallery UI).
has_audio: bool§duration_ms: Option<u64>§audio_sample_rate: Option<u32>§audio_channels: Option<u32>§stage_count: u32Number of stages that ran end-to-end.
gpu: Option<usize>GPU ordinal that handled the chain (multi-GPU only).
generation_time_ms: Option<u64>Wall-clock elapsed time across all stages + stitching.
script: ChainScriptCanonical echo of the normalised chain request, so streaming clients can save/reload the rendered script without re-serialising the transport-only fields in the submitted request body.
vram_estimate: Option<VramEstimate>Reserved for sub-project D; None in this release.
filename: Option<String>Filename this stitched output was saved under in the server gallery. Present for servers that persist chain output and absent on older servers or when gallery output is disabled.
metadata: Option<Box<OutputMetadata>>The exact metadata recorded for the saved stitched output. Streaming
clients can use this with filename instead of reconstructing chain
provenance from the request or encoded media.
Trait Implementations§
Source§impl Clone for SseChainCompleteEvent
impl Clone for SseChainCompleteEvent
Source§fn clone(&self) -> SseChainCompleteEvent
fn clone(&self) -> SseChainCompleteEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more