Enum coset::Label [−][src]
Expand description
A COSE label may be either a signed integer value or a string.
Variants
Tuple Fields of Int
0: i128
Tuple Fields of Text
0: String
Trait Implementations
Create an object instance by reading serialized CBOR data from std::io::Read
instance.
Create an object instance from serialized CBOR data in a slice.
Deserialize this value from the given Serde deserializer. Read more
Manual implementation of Ord
to ensure that CBOR canonical ordering is respected.
Note that this uses the ordering given by RFC 8949 section 4.2.1 (lexicographic ordering of encoded form), which is different from the canonical ordering defined in RFC 7049 section 3.9 (where the primary sorting criterion is the length of the encoded form)
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 RefUnwindSafe for Label
impl UnwindSafe for Label
Blanket Implementations
Mutably borrows from an owned value. Read more