Module deprecation

Module deprecation 

Source
Expand description

Handle the deprecation of older versions of some types

Structs§

Deprecated
Wrapper type that can be used inside the dispatch enum for a type to mark a version that has been deprecated.
DeprecatedVersion
This type is used in the Version trait but should not be manually used.
DeprecatedVersionError
An error returned when trying to interact (unserialize or unversionize) with a deprecated type.

Traits§

Deprecable
This trait should be implemented for types that have deprecated versions. You can then use them inside the dispatch enum by wrapping them into the Deprecated type.