pub struct Bot<'a> {
pub name: Text<'a>,
pub category: Text<'a>,
}Expand description
A bot a user-agent string names: a crawler, preview fetcher, monitor or automation tool.
PHP: Utopia\UserAgent\Bot.
Fields§
§name: Text<'a>Name of the bot (Googlebot, GPTBot).
category: Text<'a>search crawler, ai crawler, social preview, … (Bot::CRAWLER
for bots only the generic rule recognises).
Implementations§
Trait Implementations§
impl<'a> Eq for Bot<'a>
impl<'a> StructuralPartialEq for Bot<'a>
Auto Trait Implementations§
impl<'a> Forget for Bot<'a>
impl<'a> Freeze for Bot<'a>
impl<'a> Move for Bot<'a>
impl<'a> RefUnwindSafe for Bot<'a>
impl<'a> Send for Bot<'a>
impl<'a> Sync for Bot<'a>
impl<'a> Unpin for Bot<'a>
impl<'a> UnsafeUnpin for Bot<'a>
impl<'a> UnwindSafe for Bot<'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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.