pub enum ValidationTarget {
CreepJs,
BrowserScan,
FingerprintJs,
Kasada,
Cloudflare,
Akamai,
DataDome,
PerimeterX,
}Expand description
The anti-bot or fingerprint-observatory services that can be probed.
§Example
use stygian_browser::validation::ValidationTarget;
assert_eq!(ValidationTarget::CreepJs.url(), "https://abrahamjuliot.github.io/creepjs/");
assert_eq!(ValidationTarget::all().len(), 8);Variants§
CreepJs
CreepJS — open-source comprehensive fingerprint observatory (Tier 1).
BrowserScan
BrowserScan authenticity percentage (Tier 1).
FingerprintJs
FingerprintJS Pro — detects canvas/audio/WebGL inconsistency (Tier 3).
Kasada
Kasada — two-phase token, iframe checks (Tier 2).
Cloudflare
Cloudflare Turnstile / Bot Management (Tier 2).
Akamai
Akamai sensor-data collection (Tier 2).
DataDome
DataDome — e-commerce behavioral analysis (Tier 3).
PerimeterX
PerimeterX — behavioral + fingerprint (Tier 3).
Implementations§
Source§impl ValidationTarget
impl ValidationTarget
Sourcepub const fn url(self) -> &'static str
pub const fn url(self) -> &'static str
Canonical entry-point URL for this target.
§Example
use stygian_browser::validation::ValidationTarget;
assert!(ValidationTarget::CreepJs.url().starts_with("https://"));Sourcepub const fn is_ci_safe(self) -> bool
pub const fn is_ci_safe(self) -> bool
Whether this target is safe to run in automated CI (Tier 1 only).
§Example
use stygian_browser::validation::ValidationTarget;
assert!(ValidationTarget::CreepJs.is_ci_safe());
assert!(!ValidationTarget::Kasada.is_ci_safe());Trait Implementations§
Source§impl Clone for ValidationTarget
impl Clone for ValidationTarget
Source§fn clone(&self) -> ValidationTarget
fn clone(&self) -> ValidationTarget
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 ValidationTarget
impl Debug for ValidationTarget
Source§impl<'de> Deserialize<'de> for ValidationTarget
impl<'de> Deserialize<'de> for ValidationTarget
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 Display for ValidationTarget
impl Display for ValidationTarget
Source§impl Hash for ValidationTarget
impl Hash for ValidationTarget
Source§impl PartialEq for ValidationTarget
impl PartialEq for ValidationTarget
Source§impl Serialize for ValidationTarget
impl Serialize for ValidationTarget
impl Copy for ValidationTarget
impl Eq for ValidationTarget
impl StructuralPartialEq for ValidationTarget
Auto Trait Implementations§
impl Freeze for ValidationTarget
impl RefUnwindSafe for ValidationTarget
impl Send for ValidationTarget
impl Sync for ValidationTarget
impl Unpin for ValidationTarget
impl UnsafeUnpin for ValidationTarget
impl UnwindSafe for ValidationTarget
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
Checks if this value is equivalent to the given key. Read more
§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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.