serde::__private::de

Function missing_field

Source
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.