pub trait CustomConverter {
type Target: Archive;
// Required methods
fn serialize(&self, ctx: &dyn Any) -> Result<Self::Target, SerializeError>;
fn deserialize(
data: Self::Target,
ctx: &dyn Any,
) -> Result<Self, DeserializeError>
where Self: Sized;
}Expand description
A trait for writing custom serialization and deserialization.
#[cacheable(with=Custom)] will use this trait.