Function ruma_common::serde::none_as_default
source ยท pub fn none_as_default<'de, D, T>(deserializer: D) -> Result<T, D::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::Error>
Deserialize a T
via Option<T>
, falling back to T::default()
.