Skip to main content

is_uuid

Function is_uuid 

Source
pub fn is_uuid(s: &str) -> bool
Expand description

Canonical hyphenated UUID per RFC 4122 §3.

Accepts the 36-character 8-4-4-4-12 hex form only; the uuid crate’s try_parse also accepts simple (32-char), URN, and brace forms, which protovalidate’s string.uuid rule rejects.