pub struct CreateBrowserContext {
pub dispose_on_detach: Option<bool>,
pub proxy_server: Option<String>,
pub proxy_bypass_list: Option<String>,
pub origins_with_universal_network_access: Option<Vec<String>>,
}Expand description
Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.
Fields§
§dispose_on_detach: Option<bool>If specified, disposes this context when debugging session disconnects.
proxy_server: Option<String>Proxy server, similar to the one passed to –proxy-server
proxy_bypass_list: Option<String>Proxy bypass list, similar to the one passed to –proxy-bypass-list
origins_with_universal_network_access: Option<Vec<String>>An optional list of origins to grant unlimited cross-origin access to. Parts of the URL other than those constituting origin are ignored.
Trait Implementations§
Source§impl Clone for CreateBrowserContext
impl Clone for CreateBrowserContext
Source§fn clone(&self) -> CreateBrowserContext
fn clone(&self) -> CreateBrowserContext
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 CreateBrowserContext
impl Debug for CreateBrowserContext
Source§impl<'de> Deserialize<'de> for CreateBrowserContext
impl<'de> Deserialize<'de> for CreateBrowserContext
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 Method for CreateBrowserContext
impl Method for CreateBrowserContext
const NAME: &'static str = "Target.createBrowserContext"
type ReturnObject = CreateBrowserContextReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for CreateBrowserContext
impl PartialEq for CreateBrowserContext
Source§impl Serialize for CreateBrowserContext
impl Serialize for CreateBrowserContext
impl StructuralPartialEq for CreateBrowserContext
Auto Trait Implementations§
impl Freeze for CreateBrowserContext
impl RefUnwindSafe for CreateBrowserContext
impl Send for CreateBrowserContext
impl Sync for CreateBrowserContext
impl Unpin for CreateBrowserContext
impl UnsafeUnpin for CreateBrowserContext
impl UnwindSafe for CreateBrowserContext
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