either

fun <R : ValidationRule<T>> R.either(vararg option: T): R(source)

Validate that the element should be equal to one of the elements in option given that it is set.

Return

The original rule on which this method has been invoked.