Struct url_serde::De
[−]
[src]
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]
De<T>: Deserialize<'de>,
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.
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<'de> Deserialize<'de> for De<Option<Url>>
[src]
Deserializes this Optionserde
stream.
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<'de> Deserialize<'de> for De<Host>
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more