alloy_serde

Function reject_if_some

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