Skip to main content

apollo_configuration/types/
mod.rs

1//! Type support for configuration values.
2//!
3//! This module provides wrappers for common external types that can be used in
4//! configuration.
5
6mod arc;
7mod boxed;
8mod hashmap;
9mod option;
10mod vec;
11
12#[cfg(feature = "duration")]
13mod duration;
14#[cfg(feature = "grpc")]
15mod grpc;
16#[cfg(feature = "http")]
17mod http;
18mod ip;
19#[cfg(feature = "regex")]
20mod regex;
21mod socket;
22#[cfg(feature = "url")]
23mod url;
24
25#[cfg(feature = "duration")]
26pub use duration::Duration;
27#[cfg(feature = "grpc")]
28pub use grpc::{MetadataKey, MetadataValue};
29#[cfg(feature = "http")]
30pub use http::{HeaderName, HeaderValue, Method, Uri};
31pub use ip::{IpAddr, Ipv4Addr, Ipv6Addr};
32#[cfg(feature = "regex")]
33pub use regex::Regex;
34pub use socket::{SocketAddr, SocketAddrV4, SocketAddrV6};
35#[cfg(feature = "url")]
36pub use url::Url;