pub struct BrowserConfig {Show 18 fields
pub proxy_pool: Option<String>,
pub os: Option<String>,
pub country: Option<String>,
pub session: Option<String>,
pub timeout: Option<u32>,
pub block_images: bool,
pub block_styles: bool,
pub block_fonts: bool,
pub block_media: bool,
pub screenshot: bool,
pub cache: bool,
pub blacklist: bool,
pub debug: bool,
pub resolution: Option<String>,
pub browser_brand: Option<String>,
pub byop_proxy: Option<String>,
pub enable_mcp: bool,
pub solve_captcha: bool,
}Expand description
Configuration for a Cloud Browser WebSocket session (passed to
[cloud_browser_url]).
Fields§
§proxy_pool: Option<String>Proxy pool.
os: Option<String>OS fingerprint.
country: Option<String>Proxy country.
session: Option<String>Session name.
timeout: Option<u32>Session timeout (seconds).
block_images: boolBlock images.
block_styles: boolBlock stylesheets.
block_fonts: boolBlock fonts.
block_media: boolBlock media.
screenshot: boolEnable screenshot capability.
cache: boolEnable cache.
blacklist: boolEnable blacklist.
debug: boolDebug.
resolution: Option<String>Resolution.
browser_brand: Option<String>Browser brand.
byop_proxy: Option<String>BYOP proxy URL.
enable_mcp: boolEnable MCP (Model Context Protocol) support.
solve_captcha: boolArm Scrapium’s built-in captcha detector + solver on the first page attach. Turnstile, DataDome slider, reCAPTCHA, GeeTest, PerimeterX hold, and puzzle captchas are handled automatically. Billed per solve; failures cost nothing. See https://scrapfly.io/docs/cloud-browser-api/captcha-solver.
Trait Implementations§
Source§impl Clone for BrowserConfig
impl Clone for BrowserConfig
Source§fn clone(&self) -> BrowserConfig
fn clone(&self) -> BrowserConfig
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 BrowserConfig
impl Debug for BrowserConfig
Source§impl Default for BrowserConfig
impl Default for BrowserConfig
Source§fn default() -> BrowserConfig
fn default() -> BrowserConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BrowserConfig
impl RefUnwindSafe for BrowserConfig
impl Send for BrowserConfig
impl Sync for BrowserConfig
impl Unpin for BrowserConfig
impl UnsafeUnpin for BrowserConfig
impl UnwindSafe for BrowserConfig
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