Struct qt_core::q_byte_array::Base64Option
source · pub struct Base64Option(/* private fields */);
Expand description
This enum contains the options available for encoding and decoding Base64. Base64 is defined by RFC 4648, with the following options:
C++ enum: QByteArray::Base64Option
.
This enum contains the options available for encoding and decoding Base64. Base64 is defined by RFC 4648, with the following options:
QByteArray::fromBase64() ignores the KeepTrailingEquals and OmitTrailingEquals options and will not flag errors in case they are missing or if there are too many of them.
This enum was introduced or modified in Qt 5.2.
The Base64Options type is a typedef for QFlags<Base64Option>. It stores an OR combination of Base64Option values.
Implementations§
source§impl Base64Option
impl Base64Option
sourcepub const Base64Encoding: Base64Option = _
pub const Base64Encoding: Base64Option = _
(default) The regular Base64 alphabet, called simply “base64” (C++ enum variant: Base64Encoding = 0
)
sourcepub const Base64UrlEncoding: Base64Option = _
pub const Base64UrlEncoding: Base64Option = _
An alternate alphabet, called “base64url”, which replaces two characters in the alphabet to be more friendly to URLs. (C++ enum variant: Base64UrlEncoding = 1
)
sourcepub const KeepTrailingEquals: Base64Option = _
pub const KeepTrailingEquals: Base64Option = _
(default) Keeps the trailing padding equal signs at the end of the encoded data, so the data is always a size multiple of four. (C++ enum variant: KeepTrailingEquals = 0
)
sourcepub const OmitTrailingEquals: Base64Option = _
pub const OmitTrailingEquals: Base64Option = _
Omits adding the padding equal signs at the end of the encoded data. (C++ enum variant: OmitTrailingEquals = 2
)
Trait Implementations§
source§impl<T: Into<QFlags<Base64Option>>> BitOr<T> for Base64Option
impl<T: Into<QFlags<Base64Option>>> BitOr<T> for Base64Option
§type Output = QFlags<Base64Option>
type Output = QFlags<Base64Option>
|
operator.source§impl Clone for Base64Option
impl Clone for Base64Option
source§fn clone(&self) -> Base64Option
fn clone(&self) -> Base64Option
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Base64Option
impl Debug for Base64Option
source§impl From<Base64Option> for QFlags<Base64Option>
impl From<Base64Option> for QFlags<Base64Option>
source§fn from(value: Base64Option) -> Self
fn from(value: Base64Option) -> Self
source§impl From<Base64Option> for c_int
impl From<Base64Option> for c_int
source§fn from(value: Base64Option) -> Self
fn from(value: Base64Option) -> Self
source§impl From<i32> for Base64Option
impl From<i32> for Base64Option
source§impl PartialEq for Base64Option
impl PartialEq for Base64Option
source§fn eq(&self, other: &Base64Option) -> bool
fn eq(&self, other: &Base64Option) -> bool
self
and other
values to be equal, and is used
by ==
.