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

Function versioned

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

Source from the content-addressed store, hash-verified

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

Callers 6

skeleton_protoFunction · 0.85
slice_protoFunction · 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