pub struct Digest;Trait Implementations§
Source§impl Value for Digest
impl Value for Digest
const NAME: &'static str = "harmos_domain::model::storage::files::codec::Digest"
const KIND: Kind<Definition> = Kind::Bytes
type Native = [u8; 32]
fn postcard_write(value: &[u8; 32], bytes: &mut Vec<u8>)
fn postcard_size(_: &[u8; 32]) -> usize
fn postcard_memory(input: &mut Reader<'_>) -> Result<usize, MessageError>
fn postcard_read(input: &mut Reader<'_>) -> Result<[u8; 32], MessageError>
const CARDINALITY: Cardinality = Cardinality::Required
Auto Trait Implementations§
impl Freeze for Digest
impl RefUnwindSafe for Digest
impl Send for Digest
impl Sync for Digest
impl Unpin for Digest
impl UnsafeUnpin for Digest
impl UnwindSafe for Digest
Blanket Implementations§
impl<T> Allocation for T
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