[][src]Struct url_serde::De

pub struct De<T>(_);

A wrapper to deserialize rust-url types.

This is useful with functions such as serde_json::from_str.

Values of this type can only be obtained through the serde::Deserialize trait.

Methods

impl<'de, T> De<T> where
    De<T>: Deserialize<'de>, 
[src]

pub fn into_inner(self) -> T[src]

Consumes this wrapper, returning the deserialized value.

Trait Implementations

impl<T: Debug> Debug for De<T>[src]

impl<'de> Deserialize<'de> for De<Url>[src]

Deserializes this URL from a serde stream.

impl<'de> Deserialize<'de> for De<Option<Url>>[src]

Deserializes this Option from a serde stream.

impl<'de> Deserialize<'de> for De<Host>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]