Suppose I have the following data class ``` data ...
# announcements
e
Suppose I have the following data class
Copy code
data class ChangePassword(val email: String, val password: String): Command
How do I customize the fields such that I can determine what happens when the value is set, for example, validate that the email follows a certain regex, or that the password has certain number of characters, etc. Any thoughts on how to do that?