Function common_primitives::utils::as_string_option::serialize
source · pub fn serialize<S: Serializer>(
bytes: &Option<Vec<u8>>,
serializer: S
) -> Result<S::Ok, S::Error>
Expand description
Serializes a Option<Vec<u8>>
into a UTF-8 string if Ok()