// Copied by wuapi-codegen from packages/sdk-codegen/templates/rust/src/serde_helpers.rs. Do not edit here.
//! Serde helpers the generated types use.
// An API may need only some of them.
use ;
/// Deserializes a field that may be absent or `null` into
/// `Option<Option<T>>`: absent is `None`, `null` is `Some(None)`, a value is
/// `Some(Some(value))`. Pair it with `#[serde(default)]`.
pub
/// Parses a JSON value into `T`, reporting failures as the caller's
/// deserializer error. The unions with a discriminator read the value first
/// to pick the variant, then parse it with this.
pub