Function base64::decode [] [src]

pub fn decode(input: &str) -> Result<StringBase64Error>

Decode from string reference as utf8. Returns a Result containing a String.

Example

extern crate base64;

fn main() {
    let text = base64::decode("aGVsbG8gd29ybGQ=").unwrap();
    println!("{}", text);
}