pub struct RobotRule {
pub user_agent: String,
pub allowed: Vec<String>,
pub disallowed: Vec<String>,
}
Expand description
A rule for a specific user-agent containing allowed and disallowed paths.
Fields§
§user_agent: String
The user-agent this rule applies to (e.g., “Googlebot”, “*”)
allowed: Vec<String>
List of paths explicitly allowed for this user-agent
disallowed: Vec<String>
List of paths disallowed for this user-agent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RobotRule
impl RefUnwindSafe for RobotRule
impl Send for RobotRule
impl Sync for RobotRule
impl Unpin for RobotRule
impl UnwindSafe for RobotRule
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