Expand description

Versioned wrapper types for serialization

In the bin-prot Mina wire protocol, each nested type has an associated version. This is to allow for backward compatibility if parts of the wire protocol change. This simple wrapper type ensures that this information is included in the serialized output in an indentical way to the mina reference implementation.

Modules

Macros that help implement common traits for versioned wrapper types

Macros

Macro that implements From trait for 2-way conversion between the orignal type and the generic target type, using the intermidate type that is convertible from and to both orignal and target types
Macro that implements From trait for a newtype struct and its versioned wrapper
Macro that implements From trait for 2-way conversion between the orignal type and the versioned target type, using the intermidate type that is convertible from and to both orignal and target types
Macro that implements From trait for for a struct and its versioned wrapper
Macro that implements From trait for 2-way conversion between the orignal type and the target json type, via an intermidate versioned type that is convertible from and to both orignal and target types. It also implements BinProtSerializationType and JsonSerializationType for convenience

Structs

A generic version wrapper around another type