base64-string-rs
A Rust crate for Base64 string.
Install to Cargo.toml
Add this to your Cargo.toml
:
[]
= "<<version>>"
About Base64String
Base64String is a string type in Base64 format that contains meta-information about the encoding.
Usage
use Base64StringFactory;
let str = "0123ABC";
let factory = default;
let encoded = factory.encode_from_string;
println!;
// encoded = Base64String(value = MDEyM0FCQw, url_safe = false, padding = false)
let decoded = encoded.decode_to_string.unwrap;
println!; // 0123ABC
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.