[][src]Struct qt_core::QCborKnownTags

#[repr(transparent)]
pub struct 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.

C++ enum: QCborKnownTags.

C++ documentation:

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().

Methods

impl QCborKnownTags[src]

pub fn to_int(&self) -> c_int[src]

impl QCborKnownTags[src]

pub const DateTimeString: QCborKnownTags[src]

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)

pub const UnixTimeT: QCborKnownTags[src]

A numerical representation of seconds elapsed since 1970-01-01T00:00Z. (C++ enum variant: UnixTime_t = 1)

pub const PositiveBignum: QCborKnownTags[src]

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)

pub const NegativeBignum: QCborKnownTags[src]

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)

pub const Decimal: QCborKnownTags[src]

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)

pub const Bigfloat: QCborKnownTags[src]

Similar to Decimal, but the exponent is a power of 2 instead. (C++ enum variant: Bigfloat = 5)

pub const COSEEncrypt0: QCborKnownTags[src]

An Encrypt0 map as specified by RFC 8152 (CBOR Object Signing and Encryption). (C++ enum variant: COSE_Encrypt0 = 16)

pub const COSEMac0: QCborKnownTags[src]

A Mac0 map as specified by RFC 8152 (CBOR Object Signing and Encryption). (C++ enum variant: COSE_Mac0 = 17)

pub const COSESign1: QCborKnownTags[src]

A Sign1 map as specified by RFC 8152 (CBOR Object Signing and Encryption). (C++ enum variant: COSE_Sign1 = 18)

pub const ExpectedBase64URL: QCborKnownTags[src]

Indicates that the byte array should be encoded using Base64url if the stream is converted to JSON. (C++ enum variant: ExpectedBase64url = 21)

pub const ExpectedBase64: QCborKnownTags[src]

Indicates that the byte array should be encoded using Base64 if the stream is converted to JSON. (C++ enum variant: ExpectedBase64 = 22)

pub const ExpectedBase16: QCborKnownTags[src]

Indicates that the byte array should be encoded using Base16 (hex) if the stream is converted to JSON. (C++ enum variant: ExpectedBase16 = 23)

pub const EncodedCbor: QCborKnownTags[src]

Indicates that the byte array contains a CBOR stream. (C++ enum variant: EncodedCbor = 24)

pub const Url: QCborKnownTags[src]

Indicates that the string contains a URL. (C++ enum variant: Url = 32)

pub const Base64URL: QCborKnownTags[src]

Indicates that the string contains data encoded using Base64url. (C++ enum variant: Base64url = 33)

pub const Base64: QCborKnownTags[src]

Indicates that the string contains data encoded using Base64. (C++ enum variant: Base64 = 34)

pub const RegularExpression: QCborKnownTags[src]

Indicates that the string contains a Perl-Compatible Regular Expression pattern. (C++ enum variant: RegularExpression = 35)

pub const MimeMessage: QCborKnownTags[src]

Indicates that the string contains a MIME message (according to https://tools.ietf.org/html/rfc2045){RFC 2045}. (C++ enum variant: MimeMessage = 36)

pub const Uuid: QCborKnownTags[src]

Indicates that the byte array contains a UUID. (C++ enum variant: Uuid = 37)

pub const COSEEncrypt: QCborKnownTags[src]

An Encrypt map as specified by RFC 8152 (CBOR Object Signing and Encryption). (C++ enum variant: COSE_Encrypt = 96)

pub const COSEMac: QCborKnownTags[src]

A Mac map as specified by RFC 8152 (CBOR Object Signing and Encryption). (C++ enum variant: COSE_Mac = 97)

pub const COSESign: QCborKnownTags[src]

A Sign map as specified by RFC 8152 (CBOR Object Signing and Encryption). (C++ enum variant: COSE_Sign = 98)

pub const Signature: QCborKnownTags[src]

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

impl From<i32> for QCborKnownTags[src]

impl From<QCborKnownTags> for c_int[src]

impl Clone for QCborKnownTags[src]

impl Copy for QCborKnownTags[src]

impl Eq for QCborKnownTags[src]

impl PartialEq<QCborKnownTags> for QCborKnownTags[src]

impl Debug for QCborKnownTags[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]