pub trait InjectionClassifier: Send + Sync {
// Required methods
fn classify<'a>(&'a self, text: &'a str) -> BoxFut<'a, Classification>;
fn kind(&self) -> &'static str;
}Required Methods§
fn classify<'a>(&'a self, text: &'a str) -> BoxFut<'a, Classification>
fn kind(&self) -> &'static str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".