pub struct UserAgentFacts {
pub browser: UserAgentBrowser,
pub platform: UserAgentPlatform,
pub browser_major_version: Option<u32>,
pub chromium_major_version: Option<u32>,
pub headless: bool,
pub inferred_profile: Option<StealthProfile>,
pub mobile: bool,
}Expand description
Parsed browser identity facts from a User-Agent string.
Fields§
§browser: UserAgentBrowserParsed browser family.
platform: UserAgentPlatformParsed platform family.
browser_major_version: Option<u32>Major version for the parsed browser family.
chromium_major_version: Option<u32>Major Chromium engine version when the UA carries a Chromium token.
headless: boolWhether the UA leaks a headless Chromium token.
inferred_profile: Option<StealthProfile>Best-effort mapping to a canonical stealth profile.
mobile: boolWhether the UA represents a mobile browser surface.
Implementations§
Source§impl UserAgentFacts
impl UserAgentFacts
Sourcepub const fn client_hint_platform_value(self) -> Option<&'static str>
pub const fn client_hint_platform_value(self) -> Option<&'static str>
Client Hint platform value derived from the parsed platform.
Sourcepub const fn client_hint_mobile_value(self) -> &'static str
pub const fn client_hint_mobile_value(self) -> &'static str
Client Hint mobile value derived from the parsed platform and mobile token.
Trait Implementations§
Source§impl Clone for UserAgentFacts
impl Clone for UserAgentFacts
Source§fn clone(&self) -> UserAgentFacts
fn clone(&self) -> UserAgentFacts
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 UserAgentFacts
Source§impl Debug for UserAgentFacts
impl Debug for UserAgentFacts
impl Eq for UserAgentFacts
Source§impl PartialEq for UserAgentFacts
impl PartialEq for UserAgentFacts
Source§fn eq(&self, other: &UserAgentFacts) -> bool
fn eq(&self, other: &UserAgentFacts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UserAgentFacts
Auto Trait Implementations§
impl Freeze for UserAgentFacts
impl RefUnwindSafe for UserAgentFacts
impl Send for UserAgentFacts
impl Sync for UserAgentFacts
impl Unpin for UserAgentFacts
impl UnsafeUnpin for UserAgentFacts
impl UnwindSafe for UserAgentFacts
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