[][src]Function serde_url_params::to_writer

pub fn to_writer<W, T: ?Sized>(writer: W, value: &T) -> Result<()> where
    W: Write,
    T: Serialize

Serialize the given data structure as URL parameters into the IO stream.

Errors

Serialization fails if:

  • T's implementation of Serialize decides to fail,
  • T is a type without keys, i.e. not a struct.
  • T contains a nested struct,
  • T contains a map.