Constant data_encoding::BASE64_MIME
source · [−]pub const BASE64_MIME: Encoding;
Expand description
MIME base64 encoding
This encoding is a static version of:
let mut spec = Specification::new();
spec.symbols.push_str("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
spec.padding = Some('=');
spec.wrap.width = 76;
spec.wrap.separator.push_str("\r\n");
assert_eq!(BASE64_MIME, spec.encoding().unwrap());
It is not exactly conform to RFC2045 because it does not print the header and does not ignore all characters.