(&self)
| 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 { |
no outgoing calls