MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / new

Method new

atomic-repository/src/history/types.rs:112–121  ·  view source on GitHub ↗

Create a new history entry with minimal information. # Arguments `sequence` - The sequence number in the view log `node_id` - The internal node ID `hash` - The content hash of the change `state` - The Merkle state after this change # Returns A new `HistoryEntry` with no header loaded.

(sequence: u64, node_id: NodeId, hash: Hash, state: Merkle)

Source from the content-addressed store, hash-verified

110 ///
111 /// A new `HistoryEntry` with no header loaded.
112 pub fn new(sequence: u64, node_id: NodeId, hash: Hash, state: Merkle) -> Self {
113 Self {
114 sequence,
115 node_id,
116 hash,
117 state,
118 header: None,
119 is_tagged: false,
120 }
121 }
122
123 /// Create a history entry with full metadata.
124 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected