//! Serde helpers for wire-fidelity details.
use ;
/// Deserializes the TypeScript `field?: T | null` pattern where *absent* and
/// *null* mean different things on the wire.
///
/// - key absent (with `#[serde(default)]`) → `None`
/// - key present with `null` → `Some(None)`
/// - key present with a value → `Some(Some(value))`
///
/// Used where the contract documents distinct meanings — `buildId` is `null`
/// for a source run but *absent* on an older host, so a client that cannot
/// tell them apart cannot tell a source run from an old binary either.
/// `skip_serializing_if` companion for [`de_trio_option`]: only a truly absent
/// key is dropped; an explicit `null` is written back as `null`.