pub enum TargetClass {
Api,
ContentSite,
HighSecurity,
Unknown,
}Expand description
Target website classification for SLO thresholds.
Used to determine acceptable blocked ratios and risk assessments based on expected anti-bot posture. Different sites have different security requirements:
- API: Machine-to-machine communication; expects very low block ratio.
ContentSite: Public web content; moderate block tolerance.HighSecurity: Banking, auth, sensitive data; higher block ratio acceptable.- Unknown: Default classification when unable to determine target type.
Variants§
Api
REST API or GraphQL endpoint; expect clean machine-to-machine paths.
ContentSite
General content site or e-commerce; browser-like requests expected.
HighSecurity
High-security property (banking, auth, sensitive data); strict anti-bot expected.
Unknown
Unknown or unclassified target.
Trait Implementations§
Source§impl Clone for TargetClass
impl Clone for TargetClass
Source§fn clone(&self) -> TargetClass
fn clone(&self) -> TargetClass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetClass
impl Debug for TargetClass
Source§impl<'de> Deserialize<'de> for TargetClass
impl<'de> Deserialize<'de> for TargetClass
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
Source§impl Hash for TargetClass
impl Hash for TargetClass
Source§impl PartialEq for TargetClass
impl PartialEq for TargetClass
Source§impl Serialize for TargetClass
impl Serialize for TargetClass
impl Copy for TargetClass
impl Eq for TargetClass
impl StructuralPartialEq for TargetClass
Auto Trait Implementations§
impl Freeze for TargetClass
impl RefUnwindSafe for TargetClass
impl Send for TargetClass
impl Sync for TargetClass
impl Unpin for TargetClass
impl UnsafeUnpin for TargetClass
impl UnwindSafe for TargetClass
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more