pub fn none_as_default<'de, D, T>(
deserializer: D,
) -> Result<T, <D as Deserializer<'de>>::Error>
Expand description
Deserialize a T
via Option<T>
, falling back to T::default()
.
pub fn none_as_default<'de, D, T>(
deserializer: D,
) -> Result<T, <D as Deserializer<'de>>::Error>
Deserialize a T
via Option<T>
, falling back to T::default()
.