pub trait MetadataAsBytes {
    // Required methods
    fn as_bytes(&self) -> Result<Vec<u8>>;
    fn from_bytes(bytes: Vec<u8>) -> Self;
}
Expand description

Trait to handle bytes data as metadata

Required Methods§

source

fn as_bytes(&self) -> Result<Vec<u8>>

source

fn from_bytes(bytes: Vec<u8>) -> Self

Object Safety§

This trait is not object safe.

Implementors§