pub unsafe trait JsonCompatible<T>: Serialize + DeserializeOwnedwhere
T: Serialize + DeserializeOwned,{
// Provided method
fn convert(old: &T) -> Self { ... }
}Expand description
Denotes that Self is JSON compatible with type T.
You should not implement this yourself, instead use the json_compatible! macro.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.