Struct ciborium::tag::Required [−][src]
pub struct Required<V, const TAG: u64>(pub V);
Expand description
A required CBOR tag
This data type indicates that the specified tag, and only that tag, is required during deserialization. If the tag is missing, deserialization will fail. The tag will always be emitted during serialization.
Tuple Fields
0: V
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<V, const TAG: u64> RefUnwindSafe for Required<V, TAG> where
V: RefUnwindSafe,
impl<V, const TAG: u64> UnwindSafe for Required<V, TAG> where
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more