pub fn webhook_username(value: impl AsRef<str>) -> Result<(), ValidationError>
Expand description

Ensure that a webhook is correct.

The length must be at least WEBHOOK_USERNAME_LIMIT_MIN and at most WEBHOOK_USERNAME_LIMIT_MAX. It must also be free of certain substrings. This is based on this documentation entry.

Errors

Returns an error of type WebhookUsername if the length is invalid.