Struct chromiumoxide::cdp::browser_protocol::target::CreateTargetParams[][src]

pub struct CreateTargetParams {
    pub url: String,
    pub width: Option<i64>,
    pub height: Option<i64>,
    pub browser_context_id: Option<BrowserContextId>,
    pub enable_begin_frame_control: Option<bool>,
    pub new_window: Option<bool>,
    pub background: Option<bool>,
}

Creates a new page. createTarget

Fields

url: String

The initial URL the page will be navigated to.

width: Option<i64>

Frame width in DIP (headless chrome only).

height: Option<i64>

Frame height in DIP (headless chrome only).

browser_context_id: Option<BrowserContextId>

The browser context to create the page in.

enable_begin_frame_control: Option<bool>

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

new_window: Option<bool>

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

background: Option<bool>

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

Implementations

impl CreateTargetParams[src]

pub fn new(url: impl Into<String>) -> CreateTargetParams[src]

impl CreateTargetParams[src]

impl CreateTargetParams[src]

pub const IDENTIFIER: &'static str[src]

Trait Implementations

impl Clone for CreateTargetParams[src]

impl Command for CreateTargetParams[src]

type Response = CreateTargetReturns

The type of the response this request triggers on the chromium server

impl Debug for CreateTargetParams[src]

impl Default for CreateTargetParams[src]

convenience fixups

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

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

impl Method for CreateTargetParams[src]

impl MethodType for CreateTargetParams[src]

impl PartialEq<CreateTargetParams> for CreateTargetParams[src]

impl Serialize for CreateTargetParams[src]

impl StructuralPartialEq for CreateTargetParams[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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,