You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’d like to have support for a #[validate(one_of(...))] attribute to simplify enum-like validations. Right now, I believe this can only be done in a custom function. A built-in validator like the following would be much cleaner.