pub struct LaunchParams {Show 15 fields
pub headless: bool,
pub user_agent: Option<String>,
pub timezone: Option<String>,
pub viewport_width: Option<u32>,
pub viewport_height: Option<u32>,
pub user_data_dir: Option<String>,
pub proxy: Option<ProxyParams>,
pub executable_path: Option<String>,
pub runtime_dir: Option<String>,
pub sandbox: bool,
pub aggressive_cdp_evasion: bool,
pub geo_align: bool,
pub extra_args: Vec<String>,
pub device_scale_factor: Option<f64>,
pub auto_solve_cloudflare: Option<CloudflareAutoSolve>,
}Fields§
§headless: bool§user_agent: Option<String>§timezone: Option<String>§viewport_width: Option<u32>§viewport_height: Option<u32>§user_data_dir: Option<String>§proxy: Option<ProxyParams>§executable_path: Option<String>§runtime_dir: Option<String>§sandbox: bool§aggressive_cdp_evasion: bool§geo_align: bool§extra_args: Vec<String>§device_scale_factor: Option<f64>§auto_solve_cloudflare: Option<CloudflareAutoSolve>Implementations§
Source§impl LaunchParams
impl LaunchParams
pub fn validate(&self) -> Result<(), ServerError>
Trait Implementations§
Source§impl Clone for LaunchParams
impl Clone for LaunchParams
Source§impl Debug for LaunchParams
impl Debug for LaunchParams
Source§impl<'de> Deserialize<'de> for LaunchParams
impl<'de> Deserialize<'de> for LaunchParams
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
Source§impl JsonSchema for LaunchParams
impl JsonSchema for LaunchParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for LaunchParams
impl RefUnwindSafe for LaunchParams
impl Send for LaunchParams
impl Sync for LaunchParams
impl Unpin for LaunchParams
impl UnsafeUnpin for LaunchParams
impl UnwindSafe for LaunchParams
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