pub struct CborTag {
pub tag: u64,
pub data: Box<Cbor>,
}Expand description
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: u64The 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 StructuralPartialEq for CborTag
Auto Trait Implementations§
impl Freeze for CborTag
impl RefUnwindSafe for CborTag
impl Send for CborTag
impl Sync for CborTag
impl Unpin for CborTag
impl UnwindSafe for CborTag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)