tendermint::serializers::option_hash

Function serialize

Source
pub fn serialize<S>(
    value: &Option<Hash>,
    serializer: S,
) -> Result<S::Ok, S::Error>
where S: Serializer,
Expand description

Serialize from Option<Hash> into a nullable hexstring. None is serialized as null.