Struct cdp::target::CreateTargetCommand [] [src]

pub struct CreateTargetCommand<'a> {
    pub url: Cow<'a, str>,
    pub width: Option<i32>,
    pub height: Option<i32>,
    pub browser_context_id: Option<BrowserContextId<'a>>,
}

[Experimental] Creates a new page.

Command Target.createTarget

Domain Module: cdp::target
Command Struct: cdp::target::CreateTargetCommand
Response Struct: cdp::target::CreateTargetResponse

Fields

The initial URL the page will be navigated to.

Frame width in DIP (headless chrome only).

Frame height in DIP (headless chrome only).

The browser context to create the page in (headless chrome only).

Trait Implementations

impl<'a> Clone for CreateTargetCommand<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for CreateTargetCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for CreateTargetCommand<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for CreateTargetCommand<'a>
[src]

COMMAND_NAME: &'static str = "Target.createTarget"

impl<'a> SerializeCdpCommand for CreateTargetCommand<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpCommand<'de> for CreateTargetCommand<'a>
[src]

[src]

impl<'b, 'a> HasCdpResponse<'b> for CreateTargetCommand<'a>
[src]