common_primitives::utils

Module as_string_option

Source
Expand description

Handle serializing and deserializing from Option<Vec<u8>> to a UTF-8 string

Functionsยง

  • Deserializes a UTF-8 string into a Option<Vec<u8>>
  • Serializes a Option<Vec<u8>> into a UTF-8 string if Ok()