Struct cbor::CborTag [−][src]
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
tag: u64
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.
data: Box<Cbor>
The data item, represented in terms of CBOR abstract syntax.
Trait Implementations
impl Clone for CborTag
[src]
impl Clone for CborTag
fn clone(&self) -> CborTag
[src]
fn clone(&self) -> CborTag
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for CborTag
[src]
impl Debug for CborTag
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for CborTag
[src]
impl PartialEq for CborTag
fn eq(&self, other: &CborTag) -> bool
[src]
fn eq(&self, other: &CborTag) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CborTag) -> bool
[src]
fn ne(&self, other: &CborTag) -> bool
This method tests for !=
.
impl Encodable for CborTag
[src]
impl Encodable for CborTag