Struct url_serde::Ser
[−]
[src]
pub struct Ser<'a, T: 'a>(_);
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.
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> Serialize for Ser<'a, Option<Url>>
[src]
Serializes this Optionserde
stream.
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a, String> Serialize for Ser<'a, Host<String>> where
String: AsRef<str>,
[src]
String: AsRef<str>,