pub trait CustomTypeEncoder: Send + Sync {
    fn encode_value(&self, value: &Value) -> Result<Vec<u8>>;
}
Expand description

Implement this trait to define custom encoding for a type in a scale-info type registry.

Required Methods§

Implementors§