pub fn deserialize<'de, D>(deserializer: D) -> Result<Option<i64>, D::Error>where
D: Deserializer<'de>,Expand description
Deserializes a string or number representation to an optional integer value
Accepts a JSON null (mapped to None), a JSON integer, or a string
holding an integer (an empty string maps to None). A non-integer or
otherwise malformed value yields a deserialization error.
§Arguments
deserializer- The deserializer to use
§Returns
A Result containing the deserialized optional integer value or an error