[][src]Function rwt::decode_base64

pub fn decode_base64(s: &str) -> Option<String>

Decode base64 into a string.

Useful for converting incoming base64 tokens to json before deserializing. It is now necessary to do this, as far as I can tell, because serde now supports deserializing to a struct that only borrows the data it represents instead of owning it.