Box API client for Rust (open source, community, punk rock) — typed models, async managers, and a reqwest runtime with retry, backoff, and token refresh.
// Code generated by box-gantry. DO NOT EDIT.
useserde::{Deserialize, Deserializer};/// Deserialize a present field (value or `null`) into the inner `Option`,
/// wrapping in `Some` so a present `null` reads as `Some(None)` and an absent
/// field (via `#[serde(default)]`) reads as `None`.
pub(crate)fndouble_option<'de, T, D>(deserializer: D)->Result<Option<Option<T>>, D::Error>where
T:Deserialize<'de>,
D:Deserializer<'de>,
{Deserialize::deserialize(deserializer).map(Some)}