Constant lb64::config::MIME

source ·
pub const MIME: &Config<'_>;
Expand description

MIME compliant configuration as specified in RFC 2045

Specifics:

Character Set: [A-Z], [a-z], [0-9], +, /

Padding Character: =

Maximum Line Length: 76

Example:

extern crate lb64;
use lb64::{config, Base64};

fn main() {
    let b64 = Base64::new_encode_unsigned(&63, config::MIME); // Creates a MIME Compliant b64 of value 0
    println!("{}", config::MIME);
    println!("{}", b64);
    // Prints:
    // "/"
}