[][src]Struct auris::URI

pub struct URI<T> where
    T: Ord + Hash
{ pub scheme: T, pub authority: Authority<T>, pub path: Option<Vec<T>>, pub qs: Option<HashMap<T, T>>, }

URI is the whole URI object

Examples

When parsing whole URIs:

use auris::URI;
"http://bob.com".parse::<URI<String>>();

Fields

scheme: Tauthority: Authority<T>path: Option<Vec<T>>qs: Option<HashMap<T, T>>

Trait Implementations

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

impl Display for URI<String>[src]

Converts the URI struct back to a string

Examples

use auris::URI;

let parsed = "http://bob.com".parse::<URI<String>>().unwrap();

assert_eq!("http://bob.com",
    format!("{}", parsed));

impl<T: Eq> Eq for URI<T> where
    T: Ord + Hash
[src]

impl FromStr for URI<String>[src]

type Err = ParseError

The associated error which can be returned from parsing.

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

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

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

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for URI<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.