This trait provides default Rule implementations, from String to various date types and format
DefaultRules provides basic rules implementations for inputs of type I
Extends this trait if your implementing a new set of Rules for I
.
GenericRules provides basic constraints, utility methods on Rules, and completely generic Rules.
GenericRules provides basic constraints, utility methods on Rules, and completely generic Rules. Extends this trait if your implementing a new set of Rules.
A Rule is
Validation[E, A] is the result of a validation, where E is the type of each error, and A is the type of the result if the validation is successful The only two possible implementations are Success[E, A](value: A), or Failure[E, A](errors: Seq[E])
Default formatters.
Contains the validation API used by
Form
.For example, to define a custom constraint: