pub trait Encodings {
// Required methods
fn decode_properties(
bytes: &[u8],
) -> Result<HashMap<String, Value>, GraphError>;
fn encode_properties(&self) -> Result<Vec<u8>, GraphError>;
}
Required Methods§
fn decode_properties(bytes: &[u8]) -> Result<HashMap<String, Value>, GraphError>
fn encode_properties(&self) -> Result<Vec<u8>, GraphError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.