Crate serde_helpers

Source
Expand description

Serde de/serialization helpers. To use one of these helpers, use the with serde attribute: #[serde(with = "serde_helpers::foo")]

Modulesยง

  • serialize a T: Debug
  • de/serialize a T: Display + FromStr
  • de/serialize a Vec<u8> to/from a base64 encoded string.
  • de/serialize an Option<T> (where T implements is de/serializable) to/from a base64 encoded string containing a JSON payload. Make sure to also specify #[serde(default)].
  • de/serialize an Option<Guid> to/from a possibly-missing GUID string. Make sure to also specify #[serde(default)].