pub struct BrowserLaunchConfig {
pub chrome_path: Option<String>,
pub headless: bool,
pub profile_base_dir: PathBuf,
pub proxy_url: Option<String>,
pub user_agent: Option<String>,
}Expand description
Configuration for launching (or attaching to) a Chrome browser.
Fields§
§chrome_path: Option<String>Path to a Chrome/Chromium binary. None lets chromiumoxide auto-detect.
headless: boolRun Chrome headless. Set false for interactive (one-time) logins.
profile_base_dir: PathBufBase directory for persistent per-profile Chrome data. A profile_id
resolves to {profile_base_dir}/{id}; cookies and localStorage
persist there across launches.
proxy_url: Option<String>Optional --proxy-server URL. A literal {session_id} placeholder is
replaced with the launch profile_id (sticky residential routing).
user_agent: Option<String>Optional override for the User-Agent string. None selects a
platform-appropriate default.
Trait Implementations§
Source§impl Clone for BrowserLaunchConfig
impl Clone for BrowserLaunchConfig
Source§fn clone(&self) -> BrowserLaunchConfig
fn clone(&self) -> BrowserLaunchConfig
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 moreSource§impl Debug for BrowserLaunchConfig
impl Debug for BrowserLaunchConfig
Auto Trait Implementations§
impl Freeze for BrowserLaunchConfig
impl RefUnwindSafe for BrowserLaunchConfig
impl Send for BrowserLaunchConfig
impl Sync for BrowserLaunchConfig
impl Unpin for BrowserLaunchConfig
impl UnsafeUnpin for BrowserLaunchConfig
impl UnwindSafe for BrowserLaunchConfig
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