pub struct BotConfig {
pub enabled: bool,
pub mode: BotMode,
pub good_bots: Vec<String>,
pub signal_threshold: u32,
}Expand description
Configuration for bot detection.
Fields§
§enabled: bool§mode: BotMode§good_bots: Vec<String>User-agent substrings for known good bots (always allowed).
signal_threshold: u32Minimum number of signals to trigger bot detection.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BotConfig
impl<'de> Deserialize<'de> for BotConfig
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
Auto Trait Implementations§
impl Freeze for BotConfig
impl RefUnwindSafe for BotConfig
impl Send for BotConfig
impl Sync for BotConfig
impl Unpin for BotConfig
impl UnsafeUnpin for BotConfig
impl UnwindSafe for BotConfig
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