pub struct SetContentsSizeParams {
pub window_id: WindowId,
pub width: Option<i64>,
pub height: Option<i64>,
}Expand description
Set size of the browser contents resizing browser window as necessary.
Experimental: may change without notice.
Parameters of Browser.setContentsSize.
Fields§
§window_id: WindowIdBrowser window id.
width: Option<i64>The window contents width in DIP. Assumes current width if omitted. Must be specified if ‘height’ is omitted.
height: Option<i64>The window contents height in DIP. Assumes current height if omitted. Must be specified if ‘width’ is omitted.
Trait Implementations§
Source§impl Clone for SetContentsSizeParams
impl Clone for SetContentsSizeParams
Source§impl Command for SetContentsSizeParams
impl Command for SetContentsSizeParams
Source§impl Debug for SetContentsSizeParams
impl Debug for SetContentsSizeParams
Source§impl Default for SetContentsSizeParams
impl Default for SetContentsSizeParams
Source§impl<'de> Deserialize<'de> for SetContentsSizeParams
impl<'de> Deserialize<'de> for SetContentsSizeParams
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 SetContentsSizeParams
impl PartialEq for SetContentsSizeParams
Source§impl Serialize for SetContentsSizeParams
impl Serialize for SetContentsSizeParams
impl StructuralPartialEq for SetContentsSizeParams
Auto Trait Implementations§
impl Forget for SetContentsSizeParams
impl Freeze for SetContentsSizeParams
impl RefUnwindSafe for SetContentsSizeParams
impl Send for SetContentsSizeParams
impl Sync for SetContentsSizeParams
impl Unpin for SetContentsSizeParams
impl UnsafeUnpin for SetContentsSizeParams
impl UnwindSafe for SetContentsSizeParams
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