pub struct EffectiveRules {
pub rules: Vec<Rule>,
pub crawl_delay: Option<f64>,
pub request_rate: Option<RequestRate>,
pub matched_agents: Vec<String>,
}Expand description
Effective rules for a specific user-agent (after merging groups)
Fields§
§rules: Vec<Rule>Merged rules from all matching groups
crawl_delay: Option<f64>Crawl delay (from first group that specifies it)
request_rate: Option<RequestRate>Request rate (from first group that specifies it)
matched_agents: Vec<String>Which user-agents were matched
Implementations§
Trait Implementations§
Source§impl Clone for EffectiveRules
impl Clone for EffectiveRules
Source§fn clone(&self) -> EffectiveRules
fn clone(&self) -> EffectiveRules
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EffectiveRules
impl RefUnwindSafe for EffectiveRules
impl Send for EffectiveRules
impl Sync for EffectiveRules
impl Unpin for EffectiveRules
impl UnwindSafe for EffectiveRules
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more