pub fn missing_field<'de, V, E>(field: &'static str) -> Result<V, E>where
V: Deserialize<'de>,
E: Error,
Expand description
If the missing field is of type Option<T>
then treat is as None
,
otherwise it is an error.
pub fn missing_field<'de, V, E>(field: &'static str) -> Result<V, E>where
V: Deserialize<'de>,
E: Error,
If the missing field is of type Option<T>
then treat is as None
,
otherwise it is an error.