pub trait MaybeSerialize: Serialize { }
Expand description
A type that implements Serialize when in std environment or serde feature is activated.
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.
Implementors§
impl<T: Serialize> MaybeSerialize for T
Available on crate features
serde
or std
only.