macro_rules! impl_serde {
    ($wrapper:ident) => { ... };
}
Available on crate feature serde only.
Expand description

Implement serde::Serialize and serde::Deserialize for the wrapper. Deserilization will fail if the value doesn’t pass wrapper’s PROCESS function.

For this to work, the inner type of the wrapper must also implement these traits.