diff options
author | Sam Scott <sam.scott89@gmail.com> | 2017-03-09 19:22:01 -0500 |
---|---|---|
committer | Sam Scott <sam.scott89@gmail.com> | 2017-03-09 19:22:01 -0500 |
commit | 6aecad1c9a907c0dc567aef3388bb1857f9ed47d (patch) | |
tree | d07c5cdb1df9792333d65d1ae28ed153cf392ec1 /src/ser/mod.rs | |
parent | 25ab41ec08a61e1894a500b26dd8e188c1e9015d (diff) |
Support serializing sequences.
Diffstat (limited to 'src/ser/mod.rs')
-rw-r--r-- | src/ser/mod.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ser/mod.rs b/src/ser/mod.rs index 4b8f484..596730e 100644 --- a/src/ser/mod.rs +++ b/src/ser/mod.rs @@ -12,10 +12,7 @@ use std::str; use url::form_urlencoded::Serializer as UrlEncodedSerializer; use url::form_urlencoded::Target as UrlEncodedTarget; - - - -/// Serializes a value into a `application/x-wwww-url-encoded` `String` buffer. +/// Serializes a value into a querystring. /// /// ``` /// # #[macro_use] @@ -47,7 +44,7 @@ pub fn to_string<T: ser::Serialize>(input: &T) -> Result<String, Error> { Ok(urlencoder.finish()) } -/// A serializer for the `application/x-www-form-urlencoded` format. +/// A serializer for the querystring format. /// /// * Supported top-level inputs are structs, maps and sequences of pairs, /// with or without a given length. @@ -67,7 +64,7 @@ impl<'output, Target: 'output + UrlEncodedTarget> Serializer<'output, Target> { } } -/// Errors returned during serializing to `application/x-www-form-urlencoded`. +/// Errors returned during serializing to querystring. #[derive(Clone, Debug, PartialEq, Eq)] pub enum Error { Custom(Cow<'static, str>), |