branelet

Function decode_b64

Source
pub(crate) fn decode_b64<T>(input: String) -> Result<T, LetError>
Expand description

Edited: now returning LetErrors.

Decodes the given base64 string as JSON to the desired output type.

Arguments

  • input: The input to decode/parse.

Returns
The parsed data as the appropriate type, or a LetError otherwise.