[][src]Crate base64_string_rs

About Base64String

Base64String is a string type in Base64 format that contains meta-information about the encoding.

Usage

use base64_string_rs::Base64StringFactory;

let str = "0123ABC";
let factory = Base64StringFactory::default();
let encoded = factory.encode_from_string(str);
println!("encoded = {}", encoded);
// encoded = Base64String(value = MDEyM0FCQw, url_safe = false, padding = false)
let decoded = encoded.decode_to_string().unwrap();
println!("decoded = {}", decoded); // 0123ABC

Structs

Base64String
Base64StringFactory

Enums

Base64DecodeError
Endian