pub struct PreviewRecord {
pub id: String,
pub seq: u64,
pub candidate_page_id: String,
pub source_hash: Option<String>,
pub output: Option<String>,
pub output_hash: Option<String>,
pub parent_revision: Option<String>,
pub critiques: Vec<PreviewCritique>,
pub timestamp_ms: Option<u128>,
}Expand description
A top-level preview-artifact record appended to previews.jsonl.
The caller is responsible for computing timestamp_ms (unix milliseconds),
source_hash, output_hash, and output (the rendered file path) before
calling append_preview. This module performs no clock reads.
Fields§
§id: StringStable preview id (unique within a document’s previews log).
seq: u64Monotonic sequence number within this log (0-based).
candidate_page_id: StringId of the page this preview is a rendering of.
source_hash: Option<String>Optional content hash of the source artifact consumed to produce this preview.
output: Option<String>Optional output file path of the rendered preview.
output_hash: Option<String>Optional content hash of the rendered output file.
parent_revision: Option<String>Optional id of the parent revision this preview was derived from.
critiques: Vec<PreviewCritique>Critique annotations attached to this preview.
timestamp_ms: Option<u128>Unix timestamp in milliseconds at which the preview was produced.
Trait Implementations§
Source§impl Clone for PreviewRecord
impl Clone for PreviewRecord
Source§fn clone(&self) -> PreviewRecord
fn clone(&self) -> PreviewRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PreviewRecord
impl Debug for PreviewRecord
Source§impl<'de> Deserialize<'de> for PreviewRecord
impl<'de> Deserialize<'de> for PreviewRecord
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>,
Source§impl PartialEq for PreviewRecord
impl PartialEq for PreviewRecord
Source§fn eq(&self, other: &PreviewRecord) -> bool
fn eq(&self, other: &PreviewRecord) -> bool
self and other values to be equal, and is used by ==.