[][src]Struct auris::Authority

pub struct Authority<T> where
    T: Ord + Hash
{ pub host: T, pub userinfo: Option<UserInfo<T>>, pub port: Option<u16>, }

Authority section of the URI

Fields

host: Tuserinfo: Option<UserInfo<T>>port: Option<u16>

Trait Implementations

impl<T: Debug> Debug for Authority<T> where
    T: Ord + Hash
[src]

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]

impl<T: PartialEq> PartialEq<Authority<T>> for Authority<T> where
    T: Ord + Hash
[src]

impl<T> StructuralEq for Authority<T> where
    T: Ord + Hash
[src]

impl<T> StructuralPartialEq for Authority<T> where
    T: Ord + Hash
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Authority<T> where
    T: RefUnwindSafe

impl<T> Send for Authority<T> where
    T: Send

impl<T> Sync for Authority<T> where
    T: Sync

impl<T> Unpin for Authority<T> where
    T: Unpin

impl<T> UnwindSafe for Authority<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.