pub trait CustomTypeEncoder: Send + Sync { fn encode_value(&self, value: &Value) -> Result<Vec<u8>>; }
Implement this trait to define custom encoding for a type in a scale-info type registry.
scale-info