ruleFor<T> method

RuleFor<T> ruleFor<T>(
  1. String fieldName
)

Creates a fluent rule builder for the given fieldName.

The returned RuleFor allows:

  • composing multiple validators
  • defining dependencies that trigger a re-validation

Implementation

RuleFor<T> ruleFor<T>(String fieldName) => RuleFor<T>._(this, fieldName);