Module 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ยง

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