tendermint::serializers::allow_null

Function serialize

pub fn serialize<S, T>(
    value: &T,
    serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer, T: Serialize,
Expand description

Serialize T as Some value of Option<T>.