Struct forest_encoding::tags::Tagged [−][src]
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
Trait Implementations
pub fn deserialize<D>(
deserializer: D
) -> Result<Tagged<T>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<Tagged<T>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more