pub struct InitScriptOptions {
pub patch_webdriver: bool,
pub patch_languages: bool,
}Expand description
What the init script still has to patch after the CDP overrides.
Fields§
§patch_webdriver: boolForce navigator.webdriver to false from JavaScript.
Only needed when the browser was launched by somebody else and
--disable-blink-features=AutomationControlled can no longer be passed.
patch_languages: boolAlso patch navigator.languages, which the browser already sets from
acceptLanguage.
Trait Implementations§
Source§impl Clone for InitScriptOptions
impl Clone for InitScriptOptions
Source§fn clone(&self) -> InitScriptOptions
fn clone(&self) -> InitScriptOptions
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 InitScriptOptions
Source§impl Debug for InitScriptOptions
impl Debug for InitScriptOptions
Source§impl Default for InitScriptOptions
impl Default for InitScriptOptions
Source§fn default() -> InitScriptOptions
fn default() -> InitScriptOptions
Returns the “default value” for a type. Read more
impl Eq for InitScriptOptions
Source§impl PartialEq for InitScriptOptions
impl PartialEq for InitScriptOptions
impl StructuralPartialEq for InitScriptOptions
Auto Trait Implementations§
impl Freeze for InitScriptOptions
impl RefUnwindSafe for InitScriptOptions
impl Send for InitScriptOptions
impl Sync for InitScriptOptions
impl Unpin for InitScriptOptions
impl UnsafeUnpin for InitScriptOptions
impl UnwindSafe for InitScriptOptions
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