Struct qt_core::QCborKnownTags
source · pub struct QCborKnownTags(/* private fields */);
Expand description
This enum contains a list of CBOR tags, known at the time of the Qt implementation. This list is not meant to be complete and contains only tags that are either backed by an RFC or specifically used by the Qt implementation.
C++ enum: QCborKnownTags
.
This enum contains a list of CBOR tags, known at the time of the Qt implementation. This list is not meant to be complete and contains only tags that are either backed by an RFC or specifically used by the Qt implementation.
The authoritative list is maintained by IANA in the CBOR tag registry.
The following tags are interpreted by QCborValue during decoding and will produce objects with extended Qt types, and it will use those tags when encoding the same extended types.
Additionally, if a QCborValue containing a QByteArray is tagged using one of ExpectedBase64url
, ExpectedBase64
or ExpectedBase16
, QCborValue will use the expected encoding when converting to JSON (see QCborValue::toJsonValue).
See also QCborTag, QCborStreamWriter::append(QCborTag), QCborStreamReader::isTag(), QCborStreamReader::toTag(), QCborValue::isTag(), and QCborValue::tag().
Implementations§
source§impl QCborKnownTags
impl QCborKnownTags
sourcepub const DateTimeString: QCborKnownTags = _
pub const DateTimeString: QCborKnownTags = _
A date and time string, formatted according to RFC 3339, as refined by RFC 4287. It is the same format as Qt::ISODate and Qt::ISODateWithMs. (C++ enum variant: DateTimeString = 0
)
sourcepub const UnixTimeT: QCborKnownTags = _
pub const UnixTimeT: QCborKnownTags = _
A numerical representation of seconds elapsed since 1970-01-01T00:00Z. (C++ enum variant: UnixTime_t = 1
)
sourcepub const PositiveBignum: QCborKnownTags = _
pub const PositiveBignum: QCborKnownTags = _
A positive number of arbitrary length, encoded as a byte array in network byte order. For example, the number 264 is represented by a byte array containing the byte value 0x01 followed by 8 zero bytes. (C++ enum variant: PositiveBignum = 2
)
sourcepub const NegativeBignum: QCborKnownTags = _
pub const NegativeBignum: QCborKnownTags = _
A negative number of arbirary length, encoded as the absolute value of that number, minus one. For example, a byte array containing byte value 0x02 followed by 8 zero bytes represents the number -265 - 1. (C++ enum variant: NegativeBignum = 3
)
sourcepub const Decimal: QCborKnownTags = _
pub const Decimal: QCborKnownTags = _
A decimal fraction, encoded as an array of two integers: the first is the exponent of the power of 10, the second the integral mantissa. The value 273.15 would be encoded as array [-2, 27315]
. (C++ enum variant: Decimal = 4
)
sourcepub const Bigfloat: QCborKnownTags = _
pub const Bigfloat: QCborKnownTags = _
Similar to Decimal, but the exponent is a power of 2 instead. (C++ enum variant: Bigfloat = 5
)
sourcepub const COSEEncrypt0: QCborKnownTags = _
pub const COSEEncrypt0: QCborKnownTags = _
An Encrypt0
map as specified by RFC 8152 (CBOR Object Signing and Encryption). (C++ enum variant: COSE_Encrypt0 = 16
)
sourcepub const COSEMac0: QCborKnownTags = _
pub const COSEMac0: QCborKnownTags = _
A Mac0
map as specified by RFC 8152 (CBOR Object Signing and Encryption). (C++ enum variant: COSE_Mac0 = 17
)
sourcepub const COSESign1: QCborKnownTags = _
pub const COSESign1: QCborKnownTags = _
A Sign1
map as specified by RFC 8152 (CBOR Object Signing and Encryption). (C++ enum variant: COSE_Sign1 = 18
)
sourcepub const ExpectedBase64URL: QCborKnownTags = _
pub const ExpectedBase64URL: QCborKnownTags = _
Indicates that the byte array should be encoded using Base64url if the stream is converted to JSON. (C++ enum variant: ExpectedBase64url = 21
)
sourcepub const ExpectedBase64: QCborKnownTags = _
pub const ExpectedBase64: QCborKnownTags = _
Indicates that the byte array should be encoded using Base64 if the stream is converted to JSON. (C++ enum variant: ExpectedBase64 = 22
)
sourcepub const ExpectedBase16: QCborKnownTags = _
pub const ExpectedBase16: QCborKnownTags = _
Indicates that the byte array should be encoded using Base16 (hex) if the stream is converted to JSON. (C++ enum variant: ExpectedBase16 = 23
)
sourcepub const EncodedCbor: QCborKnownTags = _
pub const EncodedCbor: QCborKnownTags = _
Indicates that the byte array contains a CBOR stream. (C++ enum variant: EncodedCbor = 24
)
sourcepub const Url: QCborKnownTags = _
pub const Url: QCborKnownTags = _
Indicates that the string contains a URL. (C++ enum variant: Url = 32
)
sourcepub const Base64URL: QCborKnownTags = _
pub const Base64URL: QCborKnownTags = _
Indicates that the string contains data encoded using Base64url. (C++ enum variant: Base64url = 33
)
sourcepub const Base64: QCborKnownTags = _
pub const Base64: QCborKnownTags = _
Indicates that the string contains data encoded using Base64. (C++ enum variant: Base64 = 34
)
sourcepub const RegularExpression: QCborKnownTags = _
pub const RegularExpression: QCborKnownTags = _
Indicates that the string contains a Perl-Compatible Regular Expression pattern. (C++ enum variant: RegularExpression = 35
)
sourcepub const MimeMessage: QCborKnownTags = _
pub const MimeMessage: QCborKnownTags = _
Indicates that the string contains a MIME message (according to https://tools.ietf.org/html/rfc2045){RFC 2045}. (C++ enum variant: MimeMessage = 36
)
sourcepub const Uuid: QCborKnownTags = _
pub const Uuid: QCborKnownTags = _
Indicates that the byte array contains a UUID. (C++ enum variant: Uuid = 37
)
sourcepub const COSEEncrypt: QCborKnownTags = _
pub const COSEEncrypt: QCborKnownTags = _
An Encrypt
map as specified by RFC 8152 (CBOR Object Signing and Encryption). (C++ enum variant: COSE_Encrypt = 96
)
sourcepub const COSEMac: QCborKnownTags = _
pub const COSEMac: QCborKnownTags = _
A Mac
map as specified by RFC 8152 (CBOR Object Signing and Encryption). (C++ enum variant: COSE_Mac = 97
)
sourcepub const COSESign: QCborKnownTags = _
pub const COSESign: QCborKnownTags = _
A Sign
map as specified by RFC 8152 (CBOR Object Signing and Encryption). (C++ enum variant: COSE_Sign = 98
)
sourcepub const Signature: QCborKnownTags = _
pub const Signature: QCborKnownTags = _
No change in interpretation; this tag can be used as the outermost tag in a CBOR stream as the file header. (C++ enum variant: Signature = 55799
)
Trait Implementations§
source§impl Clone for QCborKnownTags
impl Clone for QCborKnownTags
source§fn clone(&self) -> QCborKnownTags
fn clone(&self) -> QCborKnownTags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QCborKnownTags
impl Debug for QCborKnownTags
source§impl From<QCborKnownTags> for c_int
impl From<QCborKnownTags> for c_int
source§fn from(value: QCborKnownTags) -> Self
fn from(value: QCborKnownTags) -> Self
source§impl From<i32> for QCborKnownTags
impl From<i32> for QCborKnownTags
source§impl PartialEq for QCborKnownTags
impl PartialEq for QCborKnownTags
source§fn eq(&self, other: &QCborKnownTags) -> bool
fn eq(&self, other: &QCborKnownTags) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Shl<QCborKnownTags> for &QDebug
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
impl Shl<QCborKnownTags> for &QDebug
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.source§fn shl(self, tg: QCborKnownTags) -> CppBox<QDebug>
fn shl(self, tg: QCborKnownTags) -> CppBox<QDebug>
Writes bit array ba to stream out.
Calls C++ function: QDebug operator<<(QDebug arg1, QCborKnownTags tg)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for QDataStream &operator<<(QDataStream &out, const QBitArray &ba)
:
Writes bit array ba to stream out.
See also Format of the QDataStream operators.