pub struct SetVisibleSizeParams {
pub width: i64,
pub height: i64,
}Expand description
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.
Deprecated in the protocol.
Experimental: may change without notice.
Parameters of Emulation.setVisibleSize.
Fields§
§width: i64Frame width (DIP).
height: i64Frame height (DIP).
Trait Implementations§
Source§impl Clone for SetVisibleSizeParams
impl Clone for SetVisibleSizeParams
Source§impl Command for SetVisibleSizeParams
impl Command for SetVisibleSizeParams
Source§impl Debug for SetVisibleSizeParams
impl Debug for SetVisibleSizeParams
Source§impl Default for SetVisibleSizeParams
impl Default for SetVisibleSizeParams
Source§impl<'de> Deserialize<'de> for SetVisibleSizeParams
impl<'de> Deserialize<'de> for SetVisibleSizeParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SetVisibleSizeParams
impl PartialEq for SetVisibleSizeParams
Source§impl Serialize for SetVisibleSizeParams
impl Serialize for SetVisibleSizeParams
impl StructuralPartialEq for SetVisibleSizeParams
Auto Trait Implementations§
impl Forget for SetVisibleSizeParams
impl Freeze for SetVisibleSizeParams
impl RefUnwindSafe for SetVisibleSizeParams
impl Send for SetVisibleSizeParams
impl Sync for SetVisibleSizeParams
impl Unpin for SetVisibleSizeParams
impl UnsafeUnpin for SetVisibleSizeParams
impl UnwindSafe for SetVisibleSizeParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more