Skip to main content

serialize

Function serialize 

Source
pub fn serialize<S>(bytes: &[u8], serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,
Expand description

Serialize bytes as one base64 string.

§Errors

Returns the serializer’s error when it cannot write the string.