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ยง

as_debug
serialize a T: Debug
as_string
de/serialize a T: Display + FromStr
base64_vec
de/serialize a Vec<u8> to/from a base64 encoded string.
opt_base64_json
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)].
opt_base64_vec
opt_guid_str
de/serialize an Option<Guid> to/from a possibly-missing GUID string. Make sure to also specify #[serde(default)].
vec_base64_vec