pub struct De<T>(_);
Expand description

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.

Implementations

Consumes this wrapper, returning the deserialized value.

Trait Implementations

Formats the value using the given formatter. Read more

Deserializes this URL from a serde stream.

Deserialize this value from the given Serde deserializer. Read more

Deserializes this Option from a serde stream.

Deserialize this value from the given Serde deserializer. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.