Skip to main content

present_id

Function present_id 

Source
fn present_id<'de, D>(deserializer: D) -> Result<Option<Value>, D::Error>
where D: Deserializer<'de>,
Expand description

Wraps a null id in Some, so it stays a request. A missing id is None through #[serde(default)] on the field, and only that is a notification.