mirror of
https://github.com/danbulant/robotparser-rs
synced 2026-06-14 12:11:26 +00:00
* Migrated sites into robotsparser file. * Robots.txt refactoring. * Migrated to new version of url and reqwest.
24 lines
No EOL
509 B
Rust
24 lines
No EOL
509 B
Rust
use crate::model::PathPattern;
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct CleanParams {
|
|
path_pattern: PathPattern,
|
|
params: Vec<String>,
|
|
}
|
|
|
|
impl CleanParams {
|
|
pub fn new(path_pattern: PathPattern, params: Vec<String>) -> CleanParams {
|
|
return CleanParams {
|
|
path_pattern,
|
|
params,
|
|
}
|
|
}
|
|
|
|
pub fn get_path_pattern(&self) -> &PathPattern {
|
|
return &self.path_pattern;
|
|
}
|
|
|
|
pub fn get_params(&self) -> &Vec<String> {
|
|
return &self.params;
|
|
}
|
|
} |