pub struct BrowserProfile {
pub kind: BrowserKind,
pub version: u32,
pub user_agent: String,
pub sec_ch_ua: String,
pub sec_ch_ua_platform: String,
pub sec_ch_ua_mobile: String,
}Expand description
Browser identity configuration.
§Example
use stygian_browser::profile::BrowserProfile;
let b = BrowserProfile::chrome_136_windows();
assert!(b.user_agent.contains("Chrome/136"));Fields§
§kind: BrowserKindBrowser type.
version: u32Major version number.
user_agent: StringFull User-Agent string.
sec_ch_ua: StringSec-CH-UA header value.
sec_ch_ua_platform: StringSec-CH-UA-Platform header value.
sec_ch_ua_mobile: StringSec-CH-UA-Mobile header value (?0 or ?1).
Implementations§
Source§impl BrowserProfile
impl BrowserProfile
Sourcepub fn chrome_136_windows() -> Self
pub fn chrome_136_windows() -> Self
Chrome 136 on Windows.
Sourcepub fn chrome_136_macos() -> Self
pub fn chrome_136_macos() -> Self
Chrome 136 on macOS.
Sourcepub fn chrome_136_linux() -> Self
pub fn chrome_136_linux() -> Self
Chrome 136 on Linux.
Sourcepub fn edge_136_windows() -> Self
pub fn edge_136_windows() -> Self
Edge 136 on Windows.
Sourcepub fn chrome_136_android() -> Self
pub fn chrome_136_android() -> Self
Chrome 136 on Android.
Trait Implementations§
Source§impl Clone for BrowserProfile
impl Clone for BrowserProfile
Source§fn clone(&self) -> BrowserProfile
fn clone(&self) -> BrowserProfile
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 BrowserProfile
impl Debug for BrowserProfile
Source§impl<'de> Deserialize<'de> for BrowserProfile
impl<'de> Deserialize<'de> for BrowserProfile
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 BrowserProfile
impl RefUnwindSafe for BrowserProfile
impl Send for BrowserProfile
impl Sync for BrowserProfile
impl Unpin for BrowserProfile
impl UnsafeUnpin for BrowserProfile
impl UnwindSafe for BrowserProfile
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