pub struct HistoryRecord {Show 13 fields
pub id: String,
pub seq: u64,
pub parent: Option<String>,
pub snapshot: String,
pub op_kind: Option<String>,
pub label: Option<String>,
pub affected: Vec<String>,
pub timestamp_ms: Option<u128>,
pub author: Option<String>,
pub action_id: Option<String>,
pub action_version: Option<String>,
pub preview_hash: Option<String>,
pub replay_eligible: bool,
}Expand description
A single entry in the history manifest.
The snapshot field is the substance: the content-addressed object hash of
the full document state at this point in history. All other fields are
optional display metadata and are never required to reconstruct state.
Fields§
§id: StringStable record id (unique within a manifest).
seq: u64Monotonic sequence number within this manifest (0-based).
parent: Option<String>Parent record id in the history DAG (None for the first record).
snapshot: StringTHE SUBSTANCE: object hash of the full snapshot for this record.
op_kind: Option<String>Optional label for the kind of operation that produced this state.
label: Option<String>Optional human-facing label / version name.
affected: Vec<String>Optional list of affected node ids (display only).
timestamp_ms: Option<u128>Optional unix-ms timestamp.
Optional author/participant id.
action_id: Option<String>Id of the agent action that produced this record (agent checkpoints only).
action_version: Option<String>Version pin for action_id (e.g. an action revision string).
preview_hash: Option<String>Content hash linking this record to a rendered preview artifact.
replay_eligible: boolWhether this record can be deterministically re-run. Defaults to false.
Implementations§
Trait Implementations§
Source§impl Clone for HistoryRecord
impl Clone for HistoryRecord
Source§fn clone(&self) -> HistoryRecord
fn clone(&self) -> HistoryRecord
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 HistoryRecord
impl Debug for HistoryRecord
Source§impl<'de> Deserialize<'de> for HistoryRecord
impl<'de> Deserialize<'de> for HistoryRecord
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 HistoryRecord
impl PartialEq for HistoryRecord
Source§fn eq(&self, other: &HistoryRecord) -> bool
fn eq(&self, other: &HistoryRecord) -> bool
self and other values to be equal, and is used by ==.