pub enum DecisionReason {
RobotsUnavailable,
RobotsUnreachable,
RobotsProtected,
NoMatchingRule,
AllowRuleMatched,
DisallowRuleMatched,
RobotsTxtPath,
RobotsDisabled,
}Expand description
Reason for the decision
Variants§
Robots.txt unavailable (4xx), allow all
RobotsUnreachable
Robots.txt unreachable (5xx/network), deny all
RobotsProtected
Robots.txt protected (401/403 in safe mode), deny all
NoMatchingRule
No matching rule found, default allow
AllowRuleMatched
Matched an allow rule
DisallowRuleMatched
Matched a disallow rule
RobotsTxtPath
Path is /robots.txt (always allowed)
RobotsDisabled
Robots.txt respect is disabled
Trait Implementations§
Source§impl Clone for DecisionReason
impl Clone for DecisionReason
Source§fn clone(&self) -> DecisionReason
fn clone(&self) -> DecisionReason
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 moreSource§impl Debug for DecisionReason
impl Debug for DecisionReason
Source§impl PartialEq for DecisionReason
impl PartialEq for DecisionReason
impl Eq for DecisionReason
impl StructuralPartialEq for DecisionReason
Auto Trait Implementations§
impl Freeze for DecisionReason
impl RefUnwindSafe for DecisionReason
impl Send for DecisionReason
impl Sync for DecisionReason
impl Unpin for DecisionReason
impl UnwindSafe for DecisionReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.