pub trait CustomTypeEncoder: Send + Sync {
// Required method
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.
pub trait CustomTypeEncoder: Send + Sync {
// Required method
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.