pub fn encode(id: &MessageId) -> StringExpand description
Encodes a MessageId as an opaque token.
Version 1 is base64url (no padding) over a length-prefixed body: version,
kind, u16 mailbox length, mailbox bytes, u32 UIDVALIDITY, u32 UID, and
a CRC-32 of those bytes. A flipped character fails the checksum.