1 2 3 4 5 6 7
use alloc::borrow::Cow; /// The `domain`, `host`, `ip`, `ipv4`, `ipv6` validators will implement this for their types. pub trait ToUriAuthorityString { /// Retrieve the URI authority as a string. fn to_uri_authority_string(&self) -> Cow<str>; }