pub fn reject_if_some<'de, T, D>(deserializer: D) -> Result<Option<T>, D::Error>where
T: Deserialize<'de>,
D: Deserializer<'de>,
Expand description
For use with serde’s deserialize_with
on a field that must be missing.
pub fn reject_if_some<'de, T, D>(deserializer: D) -> Result<Option<T>, D::Error>where
T: Deserialize<'de>,
D: Deserializer<'de>,
For use with serde’s deserialize_with
on a field that must be missing.