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

Function versioned

libatomic/src/daemon/sandbox_wire.rs:55–60  ·  view source on GitHub ↗
(schema: &str, payload: Vec<u8>)

Source from the content-addressed store, hash-verified

53}
54
55fn versioned(schema: &str, payload: Vec<u8>) -> pb::VersionedBytes {
56 pb::VersionedBytes {
57 schema: schema.to_string(),
58 payload,
59 }
60}
61
62fn payload<'a>(bytes: Option<&'a pb::VersionedBytes>, schema: &str) -> Result<&'a [u8], String> {
63 let bytes = bytes.ok_or_else(|| format!("missing {schema} payload"))?;

Callers 7

skeleton_protoFunction · 0.85
slice_protoFunction · 0.85
change_bytesFunction · 0.85
provenance_graph_bytesFunction · 0.85
session_turn_bytesFunction · 0.85
publication_protoFunction · 0.85
attestation_bytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected