Skip to main content

validate_username

Function validate_username 

Source
pub fn validate_username(name: &str) -> Result<(), String>
Expand description

Validate a username against the platform rules.

Returns Ok(()) when the username is acceptable, or Err(message) with a human-readable reason.