Skip to main content

encode

Function encode 

Source
pub fn encode(id: &MessageId) -> String
Expand 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.