pub struct Claims(pub HashMap<String, String>);Expand description
A simple string → string claims map (MessagePack-compatible via manual encoding).
We avoid pulling in a full MessagePack dependency by encoding as a flat key-value map using a minimal subset:
- fixmap (up to 15 entries): 0x8N
- fixstr (up to 31 bytes): 0xAL + utf8 bytes
- str8 (up to 255 bytes): 0xd9 LL + utf8 bytes
Tuple Fields§
§0: HashMap<String, String>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Claims
impl RefUnwindSafe for Claims
impl Send for Claims
impl Sync for Claims
impl Unpin for Claims
impl UnsafeUnpin for Claims
impl UnwindSafe for Claims
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more