Expand description

A module that contains all the rules

Structs

Rule to constrain an iterable collection (with reference) to valid the specified rule and an error message

Rule to ensure that 2 other rules are Ok.

Rule to constrain an iterable collection (with reference) to valid that any element of the collection valid the specified rule

Rule to constrain any type to a predicate

Rule to constrain a type to be in a collection

Rule to constraint the maximum length of any type that implements AsRef<str> such as String or &str

Rule to constraint the maximum range of any type that implement PartialOrd

Rule to constraint the maximum size of a Vec<T>

Rule to constraint the minimum length of any type that implements AsRef<str> such as String or &str

Rule to constraint the minimum and maximum length of any type that implements AsRef<str> such as String or &str

Rule to constraint the minimum and maximum range of any type that implement PartialOrd

Rule to constraint the minimum and maximum size of a Vec<T>

Rule to constraint the minimum range of any type that implement PartialOrd

Rule to constraint the minimum size of a Vec<T>

Rule to apply another rule to inner value of an Option

Rule to apply an Or condition on two rules.

Rule to constraint any type that implements AsRef<str> such as String or &str to match a Regex

Rule to check the rules of the inner type

Traits

Define a rule for a type