Struct chrome_remote_interface_model::target::CreateTargetCommand[][src]

pub struct CreateTargetCommand { /* fields omitted */ }

Creates a new page.

Implementations

impl CreateTargetCommand[src]

pub fn builder() -> CreateTargetCommandBuilder[src]

pub fn url(&self) -> &str[src]

The initial URL the page will be navigated to.

pub fn width(&self) -> Option<&u32>[src]

Frame width in DIP (headless chrome only).

pub fn height(&self) -> Option<&u32>[src]

Frame height in DIP (headless chrome only).

pub fn browser_context_id(&self) -> Option<&JsonValue>[src]

The browser context to create the page in.

pub fn enable_begin_frame_control(&self) -> Option<&bool>[src]

Whether BeginFrames for this target will be controlled via DevTools (headless chrome only, not supported on MacOS yet, false by default).

pub fn new_window(&self) -> Option<&bool>[src]

Whether to create a new Window or Tab (chrome-only, false by default).

pub fn background(&self) -> Option<&bool>[src]

Whether to create the target in background or foreground (chrome-only, false by default).

Trait Implementations

impl Clone for CreateTargetCommand[src]

impl Command for CreateTargetCommand[src]

type Return = CreateTargetReturn

Return type.

impl Debug for CreateTargetCommand[src]

impl<'de> Deserialize<'de> for CreateTargetCommand[src]

impl Serialize for CreateTargetCommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.