Skip to main content

SearchResultParser

Trait SearchResultParser 

Source
pub trait SearchResultParser {
    // Required method
    fn parse(&self, content: &str, max_results: usize) -> Vec<SearchResult>;
}
Expand description

Trait for parsing search results from different backends

Required Methods§

Source

fn parse(&self, content: &str, max_results: usize) -> Vec<SearchResult>

Parse results from raw response text

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§