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
.
pub fn allow_empty_object<'de, D, T>(
deserializer: D,
) -> Result<Option<T>, D::Error>where
D: Deserializer<'de>,
T: Deserialize<'de>,
Deserialize null
or an empty object {}
as None
.