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 ")]
forOption< ::http::uri::Authority >
- Use
#[serde(with = "http_serde::option:: header_map ")]
forOption< ::http::HeaderMap >
- Use
#[serde(with = "http_serde::option:: method ")]
forOption< ::http::Method >
- Use
#[serde(with = "http_serde::option:: status_code ")]
forOption< ::http::StatusCode >
- Use
#[serde(with = "http_serde::option:: uri ")]
forOption< ::http::uri::Uri >
- Use
#[serde(with = "http_serde::option:: version ")]
forOption< ::http::Version >