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§

source

fn serialize(&self) -> Vec<u8>

Serialize the message

source

fn deserialize(input: &[u8]) -> Result<Self, DispatchError>

Deserialize the message

Object Safety§

This trait is not object safe.

Implementors§