moonlight-core 0.1.2

Shared comparison, diffing, classification, and JSONL storage primitives for Moonlight.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::TargetObservation;
use bytes::Bytes;

/// A transient target capture used while building and comparing a run.
///
/// `TargetObservation` is the persisted observation stored in a
/// `ComparisonRun`. `CapturedTarget` also carries raw body and stderr bytes so
/// comparison can inspect complete target output without widening the persisted
/// run shape.
#[derive(Debug, Clone)]
pub struct CapturedTarget {
    pub observation: TargetObservation,
    pub body_bytes: Bytes,
    pub stderr_bytes: Bytes,
}