Module types

Module types 

Source
Expand description

Types - Core types for robots.txt handling (RFC 9309)

Structs§

CompiledPattern
Compiled pattern for efficient matching
Decision
Decision returned by is_allowed
EffectiveRules
Effective rules for a specific user-agent (after merging groups)
Group
A group of rules for specific user-agents
RequestRate
Request-rate directive (non-standard but common) Format: “requests/seconds” e.g., “1/10” means 1 request per 10 seconds
RobotsCacheKey
Cache key for robots.txt (scheme + authority)
RobotsConfig
Configuration for robots.txt handling
RobotsPolicy
Complete robots.txt policy
Rule
A single rule (Allow or Disallow)

Enums§

DecisionReason
Reason for the decision
FetchStatus
Fetch status distinguishing Unavailable vs Unreachable (RFC 9309)
RuleKind
Rule kind