struct Variant [src]
The base64 variant to use.
Fields
urlsafe_alphabet: bool = falseUse the URL-safe alphabet instead of the standard alphabet.
padding: bool = trueEnable padding with '=' characters.
Members
- standard (Constant)
- standard_nopad (Constant)
- urlsafe (Constant)
- urlsafe_nopad (Constant)
Source
pub const Variant = packed struct {
/// Use the URL-safe alphabet instead of the standard alphabet.
urlsafe_alphabet: bool = false,
/// Enable padding with '=' characters.
padding: bool = true,
/// The standard base64 variant.
pub const standard: Variant = .{ .urlsafe_alphabet = false, .padding = true };
/// The URL-safe base64 variant.
pub const urlsafe: Variant = .{ .urlsafe_alphabet = true, .padding = true };
/// The standard base64 variant without padding.
pub const standard_nopad: Variant = .{ .urlsafe_alphabet = false, .padding = false };
/// The URL-safe base64 variant without padding.
pub const urlsafe_nopad: Variant = .{ .urlsafe_alphabet = true, .padding = false };
}