pub trait ValidationRule: Send + Sync {
// Required methods
fn id(&self) -> &str;
fn severity(&self) -> Severity;
fn check(&self, model: &Model, ctx: &ValidationContext) -> Vec<Violation>;
}Expand description
A rule that checks one aspect of a model (ONNX_RS §8.1).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".