pub struct GetBrowserContextsReturns {
pub browser_context_ids: Vec<BrowserContextId>,
pub default_browser_context_id: Option<BrowserContextId>,
}Expand description
Returns all browser contexts created with Target.createBrowserContext method.
getBrowserContexts
Fields§
§browser_context_ids: Vec<BrowserContextId>An array of browser context ids.
default_browser_context_id: Option<BrowserContextId>The id of the default browser context if available.
Implementations§
Source§impl GetBrowserContextsReturns
impl GetBrowserContextsReturns
pub fn new( browser_context_ids: Vec<BrowserContextId>, ) -> GetBrowserContextsReturns
Trait Implementations§
Source§impl Clone for GetBrowserContextsReturns
impl Clone for GetBrowserContextsReturns
Source§fn clone(&self) -> GetBrowserContextsReturns
fn clone(&self) -> GetBrowserContextsReturns
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 GetBrowserContextsReturns
impl Debug for GetBrowserContextsReturns
Source§impl Default for GetBrowserContextsReturns
impl Default for GetBrowserContextsReturns
Source§fn default() -> GetBrowserContextsReturns
fn default() -> GetBrowserContextsReturns
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetBrowserContextsReturnswhere
GetBrowserContextsReturns: Default,
impl<'de> Deserialize<'de> for GetBrowserContextsReturnswhere
GetBrowserContextsReturns: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetBrowserContextsReturns, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetBrowserContextsReturns, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GetBrowserContextsReturns
impl Serialize for GetBrowserContextsReturns
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for GetBrowserContextsReturns
Auto Trait Implementations§
impl Freeze for GetBrowserContextsReturns
impl RefUnwindSafe for GetBrowserContextsReturns
impl Send for GetBrowserContextsReturns
impl Sync for GetBrowserContextsReturns
impl Unpin for GetBrowserContextsReturns
impl UnsafeUnpin for GetBrowserContextsReturns
impl UnwindSafe for GetBrowserContextsReturns
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