Function ruma::serde::none_as_default
source ยท 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()
.