Attribute Macro tuxedo_core::tuxedo_constraint_checker
source · #[tuxedo_constraint_checker]
Expand description
This macro treats the supplied enum as an aggregate constraint checker. As such, it implements the From
trait for eah of the inner types. Then it implements the ConstraintChecker
trait for this type for this
enum by delegating to an inner type.
It also declares an associated error type. The error type has a variant for each inner constraint checker, just like this original enum. however, the contained values in the error enum are of the corresponding types for the inner constraint checker.