Module tendermint::serializers::optional

Expand description

Serialize/deserialize Option<T> type where T has a serializer/deserializer. Deserialize to None if the received value equals the Default value. Serialize None as Some with the Default value for T.

Functions§