(value: &T)
| 79 | pub const SANDBOX_GRAPH_SLICE_SCHEMA: &str = "atomic.sandbox.graph-slice.v1"; |
| 80 | |
| 81 | fn encode<T: Serialize>(value: &T) -> Result<Vec<u8>, RepositoryError> { |
| 82 | postcard::to_allocvec(value).map_err(|e| RepositoryError::Serialization(e.to_string())) |
| 83 | } |
| 84 | |
| 85 | fn decode<'a, T: Deserialize<'a>>(bytes: &'a [u8]) -> Result<T, RepositoryError> { |
| 86 | postcard::from_bytes(bytes).map_err(|e| RepositoryError::Serialization(e.to_string())) |
no outgoing calls
no test coverage detected