pub trait ValidationRule: Send + Sync {
// Required method
fn validate(&self, ctx: &JoinPoint) -> Result<(), String>;
// Provided method
fn description(&self) -> &str { ... }
}Expand description
Validation rule trait.
Implement this trait to create custom validation rules that can be composed and applied to functions.
Required Methods§
Provided Methods§
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Get a description of this validation rule.