pub trait Extractor: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn extract(&self, body: &str) -> Result<ExtractionResult, AppError>;
}Expand description
Trait abstraction for any extractor. Implemented by the LLM backend (the legacy GLiNER backend was removed in v1.0.79).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".