Hi, and first of all thanks for the crate, it great, love it.
When working with internet drafts there are very often a lot of pending/requested IANA codepoints that are not within the private range and hence cannot be used within the ClaimSetBuilder which is a very convenient way to build a Cose object.
One have to resort to do the CBOR serialization by hand on the side to bypass this line.
My proposal is to add another variants like such:
pub enum RegisteredLabelWithPrivate<T: EnumI64 + WithPrivateRange> {
PrivateUse(i64),
InternetDraft(T),
Assigned(T),
Text(String),
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum RegisteredLabel<T: EnumI64> {
InternetDraft(T),
Assigned(T),
Text(String),
}
And an associated ClaimSetBuilder::internet_draft_claim that would let pass arbitrary labels.
What do you think ?