0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-10-18 06:22:53 -04:00

Fix missing doc errors

This commit is contained in:
Zsombor Gegesy 2023-09-25 00:00:06 +02:00
parent 57c73d38c8
commit 32abacb4c3
3 changed files with 7 additions and 2 deletions

View File

@ -18,7 +18,7 @@ use super::search_result_parser::SearchResultParser;
/// A new DuckDuckGo engine type defined in-order to implement the `SearchEngine` trait which allows to
/// reduce code duplication as well as allows to create vector of different search engines easily.
pub struct DuckDuckGo {
// The parser, used to interpret the search result.
/// The parser, used to interpret the search result.
parser: SearchResultParser,
}

View File

@ -7,10 +7,15 @@ use scraper::{html::Select, ElementRef, Html, Selector};
/// A html search result parser, based on a predefined CSS selectors.
pub struct SearchResultParser {
/// selector to locate the element which is displayed, if there were nothing found.
no_result: Selector,
/// selector to locate the element which contains one item from the search result.
results: Selector,
/// selector to locate the title relative to the search result item.
result_title: Selector,
/// selector to locate the url relative to the search result item.
result_url: Selector,
/// selector to locate the description relative to the search result item.
result_desc: Selector,
}

View File

@ -14,7 +14,7 @@ use error_stack::{Report, Result, ResultExt};
/// A new Searx engine type defined in-order to implement the `SearchEngine` trait which allows to
/// reduce code duplication as well as allows to create vector of different search engines easily.
pub struct Searx {
// The parser, used to interpret the search result.
/// The parser, used to interpret the search result.
parser: SearchResultParser,
}