pub struct TransportDiagnostic {
pub user_agent: String,
pub expected_profile: Option<String>,
pub expected_ja3_raw: Option<String>,
pub expected_ja3_hash: Option<String>,
pub expected_ja4: Option<String>,
pub expected_http3_perk_text: Option<String>,
pub expected_http3_perk_hash: Option<String>,
pub observed: TransportObservations,
pub transport_match: Option<bool>,
pub mismatches: Vec<String>,
}Expand description
Transport-level diagnostics emitted alongside JavaScript stealth checks.
Fields§
§user_agent: StringUser-Agent sampled from the live page.
expected_profile: Option<String>Built-in profile name inferred from User-Agent, if any.
expected_ja3_raw: Option<String>Expected JA3 raw string from the inferred profile.
expected_ja3_hash: Option<String>Expected JA3 hash from the inferred profile.
expected_ja4: Option<String>Expected JA4 fingerprint from the inferred profile.
expected_http3_perk_text: Option<String>Expected HTTP/3 perk text derived from User-Agent.
expected_http3_perk_hash: Option<String>Expected HTTP/3 perk hash derived from User-Agent.
observed: TransportObservationsCaller-supplied observed transport values.
transport_match: Option<bool>true when all supplied observations match expected fingerprints.
None when no observations were supplied.
mismatches: Vec<String>Human-readable mismatch reasons.
Implementations§
Source§impl TransportDiagnostic
impl TransportDiagnostic
Sourcepub fn from_user_agent_and_observations(
user_agent: &str,
observed: Option<&TransportObservations>,
) -> Self
pub fn from_user_agent_and_observations( user_agent: &str, observed: Option<&TransportObservations>, ) -> Self
Build transport diagnostics from user_agent and optional observations.
Trait Implementations§
Source§impl Clone for TransportDiagnostic
impl Clone for TransportDiagnostic
Source§fn clone(&self) -> TransportDiagnostic
fn clone(&self) -> TransportDiagnostic
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 TransportDiagnostic
impl Debug for TransportDiagnostic
Source§impl<'de> Deserialize<'de> for TransportDiagnostic
impl<'de> Deserialize<'de> for TransportDiagnostic
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 TransportDiagnostic
impl RefUnwindSafe for TransportDiagnostic
impl Send for TransportDiagnostic
impl Sync for TransportDiagnostic
impl Unpin for TransportDiagnostic
impl UnsafeUnpin for TransportDiagnostic
impl UnwindSafe for TransportDiagnostic
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