Trait ToBytes

Source
pub trait ToBytes {
    // Required method
    fn to_bytes(self) -> Vec<u8> ;
}
Expand description

Trait to convert to byte vec implement this to allow you struct to be used by builder

Required Methods§

Source

fn to_bytes(self) -> Vec<u8>

convert your type to bytes repersenting string of your type

Implementations on Foreign Types§

Source§

impl ToBytes for &str

Source§

fn to_bytes(self) -> Vec<u8>

Source§

impl ToBytes for String

Source§

fn to_bytes(self) -> Vec<u8>

Implementors§