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

Method new

atomic-core/src/change/span_patch.rs:123–130  ·  view source on GitHub ↗

Create a span patch with portable semantic-owner support.

(prior_metadata: Vec<u8>, ops: Vec<SpanOp>)

Source from the content-addressed store, hash-verified

121impl SpanPatch {
122 /// Create a span patch with portable semantic-owner support.
123 pub fn new(prior_metadata: Vec<u8>, ops: Vec<SpanOp>) -> Self {
124 Self {
125 version: VERSION,
126 prior_metadata,
127 ops,
128 semantic_owners: Vec::new(),
129 }
130 }
131
132 /// Encode the canonical span payload.
133 pub fn encode(&self) -> Result<Vec<u8>, SpanPatchError> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected