MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / encode

Method encode

nodedb/src/engine/graph/edge_store/temporal/payload.rs:37–42  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

35 }
36
37 pub fn encode(&self) -> crate::Result<Vec<u8>> {
38 zerompk::to_msgpack_vec(self).map_err(|e| crate::Error::Storage {
39 engine: "graph".into(),
40 detail: format!("encode EdgeValuePayload: {e}"),
41 })
42 }
43
44 pub fn decode(bytes: &[u8]) -> crate::Result<Self> {
45 zerompk::from_msgpack(bytes).map_err(|e| crate::Error::Storage {

Callers 2

put_edge_versionedMethod · 0.45

Calls

no outgoing calls

Tested by 1