[−][src]Struct url_serde::Ser
A wrapper to serialize rust-url
types.
This is useful with functions such as serde_json::to_string
.
Values of this type can only be passed to the serde::Serialize
trait.
Methods
impl<'a, T> Ser<'a, T> where
Ser<'a, T>: Serialize,
[src]
Ser<'a, T>: Serialize,
Trait Implementations
impl<'a, T: Debug + 'a> Debug for Ser<'a, T>
[src]
impl<'a> Serialize for Ser<'a, Url>
[src]
Serializes this URL into a serde
stream.
impl<'a> Serialize for Ser<'a, Option<Url>>
[src]
Serializes this Optionserde
stream.
impl<'a, String> Serialize for Ser<'a, Host<String>> where
String: AsRef<str>,
[src]
String: AsRef<str>,
Auto Trait Implementations
impl<'a, T> Unpin for Ser<'a, T>
impl<'a, T> Sync for Ser<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Send for Ser<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> UnwindSafe for Ser<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> RefUnwindSafe for Ser<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,