pub enum BotMode {
Block,
Challenge,
LogOnly,
}Expand description
Bot detection mode.
Variants§
Block
Block detected bots.
Challenge
Issue a JS challenge to suspected bots.
LogOnly
Log only; do not block.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BotMode
impl<'de> Deserialize<'de> for BotMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BotMode
impl StructuralPartialEq for BotMode
Auto Trait Implementations§
impl Freeze for BotMode
impl RefUnwindSafe for BotMode
impl Send for BotMode
impl Sync for BotMode
impl Unpin for BotMode
impl UnsafeUnpin for BotMode
impl UnwindSafe for BotMode
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