Skip to main content

decode_kafka_uuid

Function decode_kafka_uuid 

Source
pub fn decode_kafka_uuid(encoded: &str) -> Option<Uuid>
Expand description

Reads back a UUID that kafka_uuid rendered.

Returns None unless the input is URL-safe unpadded Base64 that decodes to exactly the 16 bytes of a UUID. The engine rejects a non-canonical encoding, so one UUID has one accepted spelling and the round trip is exact.