pub enum VendorId {
Akamai,
Cloudflare,
DataDome,
PerimeterX,
Hcaptcha,
Recaptcha,
Kasada,
FingerprintCom,
ShapeSecurity,
Imperva,
Unknown,
}Expand description
Anti-bot vendor identifier.
This is a local mirror of the same taxonomy used by stygian-charon’s
vendor_classifier::VendorId so the labels round-trip through
serde identically across crates. The wire labels are stable
snake_case strings; see VendorId::label.
Variants§
Akamai
Akamai Bot Manager.
Cloudflare
Cloudflare bot management.
DataDome
DataDome.
PerimeterX
PerimeterX / HUMAN Security.
Hcaptcha
hCaptcha challenge provider.
Recaptcha
Google reCAPTCHA challenge provider.
Kasada
Kasada challenge provider.
FingerprintCom
Fingerprint.com identification.
ShapeSecurity
Shape Security (F5).
Imperva
Imperva (Incapsula) bot management.
Unknown
Catch-all when no vendor was declared.
Implementations§
Source§impl VendorId
impl VendorId
Sourcepub const fn label(self) -> &'static str
pub const fn label(self) -> &'static str
Stable, lower-case wire label used by VendorId::from_label.
Mirrors the #[serde(rename_all = "snake_case")] wire form so
serde_json::to_string(&variant) == format!("\"{label}\"") for
every variant — see vendor_id_round_trips_through_json.
§Example
use stygian_proxy::types::VendorId;
assert_eq!(VendorId::DataDome.label(), "data_dome");
assert_eq!(VendorId::PerimeterX.label(), "perimeter_x");
assert_eq!(VendorId::Cloudflare.label(), "cloudflare");
assert_eq!(VendorId::Akamai.label(), "akamai");Sourcepub fn from_label(label: &str) -> Option<Self>
pub fn from_label(label: &str) -> Option<Self>
Trait Implementations§
impl Copy for VendorId
Source§impl<'de> Deserialize<'de> for VendorId
impl<'de> Deserialize<'de> for VendorId
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>,
impl Eq for VendorId
Source§impl Ord for VendorId
impl Ord for VendorId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for VendorId
impl PartialOrd for VendorId
impl StructuralPartialEq for VendorId
Auto Trait Implementations§
impl Freeze for VendorId
impl RefUnwindSafe for VendorId
impl Send for VendorId
impl Sync for VendorId
impl Unpin for VendorId
impl UnsafeUnpin for VendorId
impl UnwindSafe for VendorId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.