pub trait NeoSerializable {
type Error: Send + Sync + Debug;
// Required methods
fn size(&self) -> usize;
fn encode(&self, writer: &mut Encoder);
fn decode(reader: &mut Decoder<'_>) -> Result<Self, Self::Error>
where Self: Sized;
fn to_array(&self) -> Vec<u8> ⓘ;
}