macro_rules! combine_executable_rules { ( $name:ty, $err:ty, [$( $rule:ty ),* $(,)?] $(,)? ) => { ... }; }
Expand description
Combines multiple rules into a single rule. Args:
- Name of the resulting struct
- Name of the error type returned by the rule.
Must accept generic lifetime, executable document, and schema definition. e.g. pass Error for
Error<'a, E, S>. - Rules, a comma-separated list of types accepting generic lifetime, executable document, and schema definition.
Must implement Rule<’a, E, S>. Must be wrapped in square brackets. e.g.
[FirstRule, SecondRule]. TheErrortype of each rule must be convertable to the error type of the new rule viaInto::into.