pub trait OpenVariant<O: ?Sized + OpenEnum>:
Serialize
+ DeserializeOwned
+ 'static { }Available on crate feature
open-enums only.Expand description
A type that is a variant of the open enum O (a trait object).
This is implemented by #[deser::variant] for the types that implement
the trait. Variants are registered in an OpenEnums registry to be
deserialized. Its members are not public API.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".