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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TargetClass
Source§impl Debug for TargetClass
impl Debug for TargetClass
Source§impl Default for TargetClass
impl Default for TargetClass
Source§fn default() -> TargetClass
fn default() -> TargetClass
Returns the “default value” for a type. Read more
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
impl Eq for TargetClass
Source§impl Hash for TargetClass
impl Hash for TargetClass
Source§impl Ord for TargetClass
impl Ord for TargetClass
Source§fn cmp(&self, other: &TargetClass) -> Ordering
fn cmp(&self, other: &TargetClass) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TargetClass
impl PartialEq for TargetClass
Source§fn eq(&self, other: &TargetClass) -> bool
fn eq(&self, other: &TargetClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TargetClass
impl PartialOrd for TargetClass
Source§impl Serialize for TargetClass
impl Serialize 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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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.