moonlight_core/target.rs
1use crate::TargetObservation;
2use bytes::Bytes;
3
4/// A transient target capture used while building and comparing a run.
5///
6/// `TargetObservation` is the persisted observation stored in a
7/// `ComparisonRun`. `CapturedTarget` also carries raw body and stderr bytes so
8/// comparison can inspect complete target output without widening the persisted
9/// run shape.
10#[derive(Debug, Clone)]
11pub struct CapturedTarget {
12 pub observation: TargetObservation,
13 pub body_bytes: Bytes,
14 pub stderr_bytes: Bytes,
15}