pub struct LiveCapture {
pub schema_version: u32,
pub capture_id: String,
pub game: String,
pub client: String,
pub season: String,
pub captured_at: String,
pub environment: String,
pub locale: Locale,
pub catalog: CatalogIdentity,
pub census: CensusIdentity,
pub raw_artifact: EvidenceArtifact,
pub results: Vec<ConformanceResult>,
}Expand description
One machine-readable capture from a manually operated Workshop client.
Fields§
§schema_version: u32§capture_id: String§game: String§client: StringThe client version/build string as observed by the maintainer.
season: String§captured_at: String§environment: StringEnvironment notes, including platform and any conditions relevant to interpreting import/export behavior.
locale: Locale§catalog: CatalogIdentity§census: CensusIdentity§raw_artifact: EvidenceArtifactThe exact exported Workshop text or archive, pinned by revision/path and SHA-256. The bytes are intentionally not embedded in this schema.
results: Vec<ConformanceResult>#18 feature-attributed observations for the captured probes.
Implementations§
Source§impl LiveCapture
impl LiveCapture
Sourcepub fn validate(&self) -> Result<(), LiveCaptureError>
pub fn validate(&self) -> Result<(), LiveCaptureError>
Validate a capture’s structural and provenance contract. Historical captures may refer to an older catalog identity, so this does not silently substitute the current bundled catalog.
Sourcepub fn validate_against(
&self,
catalog: &Catalog,
) -> Result<(), LiveCaptureError>
pub fn validate_against( &self, catalog: &Catalog, ) -> Result<(), LiveCaptureError>
Validate a current capture against the loaded canonical catalog.
Sourcepub fn from_json(json: &str) -> Result<Self, LiveCaptureError>
pub fn from_json(json: &str) -> Result<Self, LiveCaptureError>
Deserialize and validate a JSON capture in one operation.
Sourcepub fn to_json(&self) -> Result<String, LiveCaptureError>
pub fn to_json(&self) -> Result<String, LiveCaptureError>
Serialize a validated capture as stable, human-reviewable JSON.
Sourcepub fn diff(&self, newer: &Self) -> Result<LiveCaptureDiff, LiveCaptureError>
pub fn diff(&self, newer: &Self) -> Result<LiveCaptureDiff, LiveCaptureError>
Compare two validated captures without contacting a provider or client.
Trait Implementations§
Source§impl Clone for LiveCapture
impl Clone for LiveCapture
Source§fn clone(&self) -> LiveCapture
fn clone(&self) -> LiveCapture
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more