Crate versionneer

Crate versionneer 

Source
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§

bincode
simd_json
simd-json based json encoding and decoding for versionneer

Macros§

versioned
This macro is a shortcut to crate a versioned type with the associated Encodable and Decodable traits.

Structs§

Upgrade
The Upgrade struct 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 Decoder trait.
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 Encode trait is used to encode versioned data.
Encoder
The Encoder trait 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.