pub trait LpMessageSerializer: Sized {
// Required methods
fn serialize(&self) -> Vec<u8> ⓘ;
fn deserialize(input: &[u8]) -> Result<Self, DispatchError>;
}
Expand description
An encoding & decoding trait for the purpose of meeting the LiquidityPools General Message Passing Format
Required Methods§
sourcefn deserialize(input: &[u8]) -> Result<Self, DispatchError>
fn deserialize(input: &[u8]) -> Result<Self, DispatchError>
Deserialize the message
Object Safety§
This trait is not object safe.