Struct serde_cbor::tags::Tagged[][src]

pub struct Tagged<T> {
    pub tag: Option<u64>,
    pub value: T,
}
Expand description

A value that is optionally tagged with a cbor tag

this only serves as an intermediate helper for tag serialization or deserialization

Fields

tag: Option<u64>

cbor tag

value: T

value

Implementations

Create a new tagged value

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.