pub struct CreateTargetParams {
pub url: String,
pub width: Option<u32>,
pub height: Option<u32>,
pub browser_context_id: Option<String>,
pub background: Option<bool>,
pub new_window: Option<bool>,
}Expand description
Parameters for Target.createTarget.
Fields§
§url: StringThe initial URL the page will be navigated to.
width: Option<u32>Frame width in pixels. Browser-controlled if unset.
height: Option<u32>Frame height in pixels. Browser-controlled if unset.
browser_context_id: Option<String>Browser context to create the page in.
background: Option<bool>Whether to begin with background tab.
new_window: Option<bool>Whether to create a new window.
Trait Implementations§
Source§impl Clone for CreateTargetParams
impl Clone for CreateTargetParams
Source§fn clone(&self) -> CreateTargetParams
fn clone(&self) -> CreateTargetParams
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 CreateTargetParams
impl Debug for CreateTargetParams
Auto Trait Implementations§
impl Freeze for CreateTargetParams
impl RefUnwindSafe for CreateTargetParams
impl Send for CreateTargetParams
impl Sync for CreateTargetParams
impl Unpin for CreateTargetParams
impl UnwindSafe for CreateTargetParams
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