Skip to main content

decode_to_string

Function decode_to_string 

Source
pub fn decode_to_string(b64: &str) -> Result<String>
Expand description

Decodes a Base64 string without padding into a string.

§Parameters

  • b64u: A string containing the encoded Base64 data.

§Returns

A result containing a string if decoding is successful and the data is valid UTF-8, or an error.