from_mut_slice_base64_bytes

Function from_mut_slice_base64_bytes 

Source
pub fn from_mut_slice_base64_bytes<'a, T>(v: &'a mut [u8]) -> Result<T>
where T: Deserialize<'a>,
Expand description

Deserialize an instance of type T from a mutable slice of bytes of JSON text.

Byte arrays deserialized from a string are decoded expecting Base64 standard encoding with optional padding.

The provided slice must be writable so the deserializer can unescape strings and parse bytes from arrays or strings in-place.

NOTE: Assume the original slice content will be modified!

Any &str or &[u8] in the returned type will contain references to the provided slice.