Skip to main content

de_optional_nullable

Function de_optional_nullable 

Source
pub fn de_optional_nullable<'de, D, T>(
    de: D,
) -> Result<Option<Option<T>>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>, T: Deserialize<'de>,
Expand description

Deserialize an optional nullable field. nv-redfish models these fields with Option<Option<T>>, where None means “no field” and Some(None) means the field is explicitly set to null.

§Errors

Returns an error if deserialization of the underlying type fails.