Trait linera_sdk::ToBcsBytes

source ·
pub trait ToBcsBytes {
    // Required method
    fn to_bcs_bytes(&self) -> Result<Vec<u8>, Error>;
}
Expand description

Extension trait to serialize a type into a vector of bytes using bcs.

Required Methods§

source

fn to_bcs_bytes(&self) -> Result<Vec<u8>, Error>

Serializes itself into a vector of bytes using bcs.

Implementors§

source§

impl<T> ToBcsBytes for T
where T: Serialize,