Module octseq::serde

source ·
Expand description

Serde support.

Serde supports native serialization of octets sequences. However, because of missing specialization, it has to serialize the octets slices and vec as literal sequences of u8s. In order to allow octets sequences their own native serialization, the crate defines two traits SerializeOctets and DeserializeOctets if built with the serde feature enabled.