[−][src]Struct auris::Authority
Authority section of the URI
Fields
host: T
userinfo: Option<UserInfo<T>>
port: Option<u16>
Trait Implementations
impl<T: Debug> Debug for Authority<T> where
T: Ord + Hash,
[src]
T: Ord + Hash,
impl Display for Authority<String>
[src]
Converts the URI struct back to a string
Examples
use auris::{Authority, UserInfo}; assert_eq!("a:b@bob.com:443", format!("{}", Authority { host: "bob.com".to_string(), userinfo: Some(UserInfo::UserAndPassword("a".to_string(), "b".to_string())), port: Some(443), }));
impl<T: Eq> Eq for Authority<T> where
T: Ord + Hash,
[src]
T: Ord + Hash,
impl<T: PartialEq> PartialEq<Authority<T>> for Authority<T> where
T: Ord + Hash,
[src]
T: Ord + Hash,
impl<T> StructuralEq for Authority<T> where
T: Ord + Hash,
[src]
T: Ord + Hash,
impl<T> StructuralPartialEq for Authority<T> where
T: Ord + Hash,
[src]
T: Ord + Hash,
Auto Trait Implementations
impl<T> RefUnwindSafe for Authority<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Authority<T> where
T: Send,
T: Send,
impl<T> Sync for Authority<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Authority<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Authority<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,