pub struct CreateBrowserContext {
pub method: CreateBrowserContextMethod,
pub params: CreateBrowserContextParams,
}Expand description
Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one. createBrowserContext
Fields§
§method: CreateBrowserContextMethod§params: CreateBrowserContextParamsImplementations§
Source§impl CreateBrowserContext
impl CreateBrowserContext
pub fn builder() -> CreateBrowserContextBuilder
Source§impl CreateBrowserContext
impl CreateBrowserContext
pub const IDENTIFIER: &'static str = "Target.createBrowserContext"
pub fn identifier(&self) -> &'static str
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 CommandResult for CreateBrowserContext
impl CommandResult for CreateBrowserContext
type Result = CreateBrowserContextResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§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 From<CreateBrowserContext> for BrowserProtocolCommands
impl From<CreateBrowserContext> for BrowserProtocolCommands
Source§fn from(v: CreateBrowserContext) -> Self
fn from(v: CreateBrowserContext) -> Self
Converts to this type from the input type.
Source§impl From<CreateBrowserContext> for Command
impl From<CreateBrowserContext> for Command
Source§fn from(v: CreateBrowserContext) -> Self
fn from(v: CreateBrowserContext) -> Self
Converts to this type from the input type.
Source§impl From<CreateBrowserContext> for TargetCommands
impl From<CreateBrowserContext> for TargetCommands
Source§fn from(v: CreateBrowserContext) -> Self
fn from(v: CreateBrowserContext) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CreateBrowserContext
impl PartialEq for CreateBrowserContext
Source§impl Serialize for CreateBrowserContext
impl Serialize for CreateBrowserContext
Source§impl TryFrom<BrowserProtocolCommands> for CreateBrowserContext
impl TryFrom<BrowserProtocolCommands> for CreateBrowserContext
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <CreateBrowserContext as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <CreateBrowserContext as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for CreateBrowserContext
impl TryFrom<Command> for CreateBrowserContext
Source§impl TryFrom<TargetCommands> for CreateBrowserContext
impl TryFrom<TargetCommands> for CreateBrowserContext
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <CreateBrowserContext as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <CreateBrowserContext as TryFrom<TargetCommands>>::Error>
Performs the conversion.
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