pub trait SerializeDeserialize {
// Provided methods
fn to_bytes_1(&self) -> Vec<u8> ⓘ
where Self: Serialize { ... }
fn bytes_1_to_header(_bytes: Vec<u8>) -> Option<Box<Self>> { ... }
fn bytes_1_to_map(bytes: Vec<u8>) -> HashMap<String, String> { ... }
fn to_json_bytes(&self) -> Vec<u8> ⓘ
where Self: Serialize { ... }
}Provided Methods§
fn to_bytes_1(&self) -> Vec<u8> ⓘwhere
Self: Serialize,
fn bytes_1_to_header(_bytes: Vec<u8>) -> Option<Box<Self>>
fn bytes_1_to_map(bytes: Vec<u8>) -> HashMap<String, String>
fn to_json_bytes(&self) -> Vec<u8> ⓘwhere
Self: Serialize,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.