Struct qt_core::q_cbor_value::DiagnosticNotationOption
source · pub struct DiagnosticNotationOption(/* private fields */);
Expand description
This enum is used in the option argument to toDiagnosticNotation(), to modify the output format.
C++ enum: QCborValue::DiagnosticNotationOption
.
This enum is used in the option argument to toDiagnosticNotation(), to modify the output format.
Currently, ExtendedFormat
will change how byte arrays are represented. Without it, they are always hex-encoded and without spaces. With it, QCborValue::toCbor() will either use hex with spaces, base64 or base64url encoding, depending on the context.
The DiagnosticNotationOptions type is a typedef for QFlags<DiagnosticNotationOption>. It stores an OR combination of DiagnosticNotationOption values.
See also toDiagnosticNotation().
Implementations§
source§impl DiagnosticNotationOption
impl DiagnosticNotationOption
sourcepub const Compact: DiagnosticNotationOption = _
pub const Compact: DiagnosticNotationOption = _
Does not use any line-breaks, producing a compact representation. (C++ enum variant: Compact = 0
)
sourcepub const LineWrapped: DiagnosticNotationOption = _
pub const LineWrapped: DiagnosticNotationOption = _
Uses line-breaks, one QCborValue per line. (C++ enum variant: LineWrapped = 1
)
sourcepub const ExtendedFormat: DiagnosticNotationOption = _
pub const ExtendedFormat: DiagnosticNotationOption = _
Uses some different options to represent values, not found in RFC 7049. Those options are subject to change. (C++ enum variant: ExtendedFormat = 2
)
Trait Implementations§
source§impl<T: Into<QFlags<DiagnosticNotationOption>>> BitOr<T> for DiagnosticNotationOption
impl<T: Into<QFlags<DiagnosticNotationOption>>> BitOr<T> for DiagnosticNotationOption
§type Output = QFlags<DiagnosticNotationOption>
type Output = QFlags<DiagnosticNotationOption>
|
operator.source§impl Clone for DiagnosticNotationOption
impl Clone for DiagnosticNotationOption
source§fn clone(&self) -> DiagnosticNotationOption
fn clone(&self) -> DiagnosticNotationOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DiagnosticNotationOption
impl Debug for DiagnosticNotationOption
source§impl From<DiagnosticNotationOption> for QFlags<DiagnosticNotationOption>
impl From<DiagnosticNotationOption> for QFlags<DiagnosticNotationOption>
source§fn from(value: DiagnosticNotationOption) -> Self
fn from(value: DiagnosticNotationOption) -> Self
source§impl From<DiagnosticNotationOption> for c_int
impl From<DiagnosticNotationOption> for c_int
source§fn from(value: DiagnosticNotationOption) -> Self
fn from(value: DiagnosticNotationOption) -> Self
source§impl From<i32> for DiagnosticNotationOption
impl From<i32> for DiagnosticNotationOption
source§impl PartialEq for DiagnosticNotationOption
impl PartialEq for DiagnosticNotationOption
source§fn eq(&self, other: &DiagnosticNotationOption) -> bool
fn eq(&self, other: &DiagnosticNotationOption) -> bool
self
and other
values to be equal, and is used
by ==
.