Skip to main content

ValidatorPlugin

Trait ValidatorPlugin 

Source
pub trait ValidatorPlugin: Plugin {
    // Required method
    fn validate(&self, text: &str, url: &str) -> Result<f64, FetchiumError>;
}
Expand description

Validator plugin: custom content validation.

Required Methods§

Source

fn validate(&self, text: &str, url: &str) -> Result<f64, FetchiumError>

Returns confidence score in [0.0, 1.0].

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§