Struct cdp::emulation::SetVisibleSizeCommand
[−]
[src]
pub struct SetVisibleSizeCommand { pub width: i32, pub height: i32, }
Deprecated
[Experimental] Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.
Command Emulation.setVisibleSize
Domain Module: cdp::emulation
Command Struct: cdp::emulation::SetVisibleSizeCommand
Response Struct: cdp::emulation::SetVisibleSizeResponse
Fields
width: i32
Deprecated
Frame width (DIP).
height: i32
Deprecated
Frame height (DIP).
Trait Implementations
impl Clone for SetVisibleSizeCommand
[src]
fn clone(&self) -> SetVisibleSizeCommand
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for SetVisibleSizeCommand
[src]
impl PartialEq for SetVisibleSizeCommand
[src]
fn eq(&self, __arg_0: &SetVisibleSizeCommand) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SetVisibleSizeCommand) -> bool
[src]
This method tests for !=
.
impl CdpCommand for SetVisibleSizeCommand
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Emulation.setVisibleSize"
impl SerializeCdpCommand for SetVisibleSizeCommand
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de> DeserializeCdpCommand<'de> for SetVisibleSizeCommand
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,