Struct saltpig::extensions::cbor::Ident[][src]

pub struct Ident(pub Value);

An extension type for self-describing CBOR items (tag value 55799; RFC 7049, section 2.4.5).

Methods

impl Ident
[src]

Attempts to parse an Ident value out of a Value (returning Err if the value turns out to be something other than an Ident).

Renders self into a generic CBOR value.

Returns a Value representing self's encoded bytes with a tag value of 55799.

Trait Implementations

impl Debug for Ident
[src]

Formats the value using the given formatter. Read more

impl Clone for Ident
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Extension for Ident
[src]

TAG: u64 = 55799

The tag value belonging to this extension type.

impl From<Ident> for Value
[src]

Renders self into a generic CBOR value.

Equivalent to Ident::embed().

Performs the conversion.

impl TryFrom<Value> for Ident
[src]

Attempts to parse an Ident value out of a Value.

Equivalent to Ident::extract().

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

Auto Trait Implementations

impl Send for Ident

impl Sync for Ident