pub struct SetVisibleSizeParams {
pub width: u64,
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.
Fields§
§width: u64Frame width (DIP).
height: i64Frame height (DIP).
Trait Implementations§
Source§impl Clone for SetVisibleSizeParams
impl Clone for SetVisibleSizeParams
Source§fn clone(&self) -> SetVisibleSizeParams
fn clone(&self) -> SetVisibleSizeParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetVisibleSizeParams
impl Debug for SetVisibleSizeParams
Source§impl Default for SetVisibleSizeParams
impl Default for SetVisibleSizeParams
Source§fn default() -> SetVisibleSizeParams
fn default() -> SetVisibleSizeParams
Returns the “default value” for a type. Read more
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
Auto Trait Implementations§
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