Function twilight_validate::request::username
source · [−]pub fn username(value: impl AsRef<str>) -> Result<(), ValidationError>Expand description
Ensure that the username length is correct.
The length must be at least USERNAME_LIMIT_MIN and at most
USERNAME_LIMIT_MAX. This is based on this documentation entry.
Errors
Returns an error of type Username if the length is invalid.