domain::utils::base64

Function decode

source
pub fn decode<Octets>(s: &str) -> Result<Octets, DecodeError>
where Octets: FromBuilder, <Octets as FromBuilder>::Builder: OctetsBuilder + EmptyBuilder,
Expand description

Decodes a string with base64 encoded data.

The function attempts to decode the entire string and returns the result as a Octets value.