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

Method new

atomic-remote/src/types.rs:166–178  ·  view source on GitHub ↗

Create a new changelist entry.

(
        sequence: u64,
        hash: impl Into<String>,
        merkle: impl Into<String>,
        tagged: bool,
    )

Source from the content-addressed store, hash-verified

164impl ChangelistEntry {
165 /// Create a new changelist entry.
166 pub fn new(
167 sequence: u64,
168 hash: impl Into<String>,
169 merkle: impl Into<String>,
170 tagged: bool,
171 ) -> Self {
172 Self {
173 sequence,
174 hash: hash.into(),
175 merkle: merkle.into(),
176 tagged,
177 }
178 }
179
180 /// Parse a changelist entry from the protocol format.
181 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected