1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
pub struct Authority<'a>(pub(super) &'a str); impl Authority<'_> { pub const EMPTY: Self = Self(""); pub fn is_empty(&self) -> bool { self.0.is_empty() } pub fn userinfo(&self) -> Option<&str> { todo!() } pub fn host(&self) -> &str { todo!() } pub fn port(&self) -> Option<&str> { todo!() } }