http_serde_ext/
authority.rs

1type Type = http::uri::Authority;
2const EXPECT_MESSAGE: &str = "valid authority";
3
4serialize_str!(Type);
5create_visitor!(
6    Visitor,
7    Type,
8    EXPECT_MESSAGE,
9    (visit_str, &str),
10    (visit_string, String)
11);
12deserialize_string!(Visitor, Type);
13
14derive_extension_types!(super::Type);
15derive_hash_types!(super::Type);