Skip to main content

validate_id

Function validate_id 

Source
fn validate_id(id: &str) -> Result<(), String>
Expand description

A reverse-DNS-ish id: non-empty, lowercase [a-z0-9.-], at least one dot, length-capped. Kept pragmatic — it’s a uniqueness key, not a security boundary.