Module http_serde::option

source ·
Expand description

Serializers and deserializers for types wrapped in Option.

use http_serde::http;
#[derive(serde::Deserialize)]
struct MaybeUri(#[serde(with = "http_serde::option::uri")] Option<http::Uri>);

Modules§

  • Use #[serde(with = "http_serde::option:: authority ")] for Option< ::http::uri::Authority >
  • Use #[serde(with = "http_serde::option:: header_map ")] for Option< ::http::HeaderMap >
  • Use #[serde(with = "http_serde::option:: method ")] for Option< ::http::Method >
  • Use #[serde(with = "http_serde::option:: status_code ")] for Option< ::http::StatusCode >
  • Use #[serde(with = "http_serde::option:: uri ")] for Option< ::http::uri::Uri >
  • Use #[serde(with = "http_serde::option:: version ")] for Option< ::http::Version >