pub struct Group<'a> {
pub agents: Vec<&'a str>,
pub rules: Vec<Rule<'a>>,
}Expand description
A robots.txt group containing one or more user agents and their rules.
Consecutive User-agent records before the first rule belong to the same
group. A later User-agent starts a new group after any Allow or
Disallow record has been seen.
Fields§
§agents: Vec<&'a str>User-agent product tokens covered by this group.
rules: Vec<Rule<'a>>Access-control rules associated with Group::agents.
Trait Implementations§
impl<'a> Eq for Group<'a>
impl<'a> StructuralPartialEq for Group<'a>
Auto Trait Implementations§
impl<'a> Freeze for Group<'a>
impl<'a> RefUnwindSafe for Group<'a>
impl<'a> Send for Group<'a>
impl<'a> Sync for Group<'a>
impl<'a> Unpin for Group<'a>
impl<'a> UnsafeUnpin for Group<'a>
impl<'a> UnwindSafe for Group<'a>
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