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. 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.
Implementations§
Trait Implementations§
Source§impl Clone for SetContentsSizeParams
impl Clone for SetContentsSizeParams
Source§fn clone(&self) -> SetContentsSizeParams
fn clone(&self) -> SetContentsSizeParams
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 SetContentsSizeParams
impl Debug 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 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