pub(crate) fn decode_b64<T>(input: String) -> Result<T, LetError>where
T: DeserializeOwned,
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.