tendermint::serializers::allow_empty_object

Function allow_empty_object

Source
pub fn allow_empty_object<'de, D, T>(
    deserializer: D,
) -> Result<Option<T>, D::Error>
where D: Deserializer<'de>, T: Deserialize<'de>,
Expand description

Deserialize null or an empty object {} as None.