Module type_rules::rules
source · [−]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 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 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 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