pub trait ParameterExtractor {
// Required methods
fn extract_parameters(&self, error: &DecrustError) -> ExtractedParameters;
fn name(&self) -> &'static str;
fn supported_categories(&self) -> &[ErrorCategory];
}Expand description
Trait for extracting parameters from errors
Required Methods§
Sourcefn extract_parameters(&self, error: &DecrustError) -> ExtractedParameters
fn extract_parameters(&self, error: &DecrustError) -> ExtractedParameters
Extracts parameters from an error
Sourcefn supported_categories(&self) -> &[ErrorCategory]
fn supported_categories(&self) -> &[ErrorCategory]
Returns the error categories this extractor supports