Struct cdp::page::Viewport [] [src]

pub struct Viewport {
    pub x: f64,
    pub y: f64,
    pub width: f64,
    pub height: f64,
    pub scale: f64,
}

[Experimental] Viewport for capturing screenshot.

Fields

X offset in CSS pixels.

Y offset in CSS pixels

Rectangle width in CSS pixels

Rectangle height in CSS pixels

Page scale factor.

Trait Implementations

impl Clone for Viewport
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Viewport
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Viewport
[src]

[src]

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

[src]

This method tests for !=.