Expand description
This crate is a helper for versioning encoded data.
It provides the Version trait that defines the version of data and it’s encoding and decoding.
Modules§
Macros§
- versioned
- This macro is a shortcut to crate a versioned type with the associated
EncodableandDecodabletraits.
Structs§
- Upgrade
- The
Upgradestruct is used to upgrade data from a previous version to the latest version.
Traits§
- Decodable
- This trait is used to mark a versioned type as decodable. Usually this is provided by the
versioned!macro. - Decode
- Decode trait for versioned data, it is used in combination with the
Decodertrait. - Decoder
- A decoder for versionneer it is used to both encode the data as well as the version.
- Encodable
- This trait is used to mark a versioned type as encodable. Usually this is provided by the
versioned!macro. - Encode
- The
Encodetrait is used to encode versioned data. - Encoder
- The
Encodertrait is used to encode versioned data. - Error
- Versioning error trait
- Versioned
- Versioned trait This trait is meant to be implemented either by the struct itself or by a version container.