Function wicrs_server::check_name_validity [−][src]
pub fn check_name_validity(name: &str) -> Result<()>
Wraps is_valid_name
to return a Result<()>
.
Errors
This function returns an error for any of the following reasons:
- The name is too long (maximum defined by
MAX_NAME_LENGTH
). - The name is too short (minimum defined by
MIN_NAME_LENGTH
). - The name contains characters not listed in
NAME_ALLOWED_CHARS
.