pub trait Rule:
Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> Cow<'static, str>;
fn validate(&self, context: RuleContext<'_>) -> Result<(), String>;
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".