Skip to main content

serialize_bytes_option

Function serialize_bytes_option 

Source
fn serialize_bytes_option<S>(
    bytes: &Option<Bytes>,
    serializer: S,
) -> Result<S::Ok, S::Error>
where S: Serializer,
Expand description

Custom serde functions for Bytes fields serialized as base64 strings.