pub struct Bytes;Trait Implementations§
Source§impl Value for Bytes
impl Value for Bytes
const NAME: &'static str = "harmos_domain::model::storage::codec::Bytes"
const KIND: Kind<Definition> = Kind::Bytes
type Native = Vec<u8>
fn postcard_write(value: &<Bytes as Value>::Native, bytes: &mut Vec<u8>)
fn postcard_size(value: &<Bytes as Value>::Native) -> usize
fn postcard_memory(input: &mut Reader<'_>) -> Result<usize, MessageError>
fn postcard_read( input: &mut Reader<'_>, ) -> Result<<Bytes as Value>::Native, MessageError>
const CARDINALITY: Cardinality = Cardinality::Required
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnsafeUnpin for Bytes
impl UnwindSafe for Bytes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more