Struct cbor::CborTag[][src]

pub struct CborTag {
    pub tag: u64,
    pub data: Box<Cbor>,
}

A tag (major type 6).

Note that if you want to encode a tag, you should use the CborTagEncode type and not this type. This type is only useful when you are manually inspecting the structure of a CBOR data item.

Fields

The tag number.

You can see a list of currently assigned tag numbers here: http://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml

Note that it is OK to choose your own tag number for your own application specific purpose, but it should probably be one that is currently unassigned in the IANA registry.

The data item, represented in terms of CBOR abstract syntax.

Trait Implementations

impl Clone for CborTag
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CborTag
[src]

Formats the value using the given formatter. Read more

impl PartialEq for CborTag
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Encodable for CborTag
[src]

Serialize a value using an Encoder.

Auto Trait Implementations

impl Send for CborTag

impl Sync for CborTag