pub struct SetContentsSizeParams {
pub windowId: WindowID,
pub width: Option<u64>,
pub height: Option<i64>,
}Expand description
Set size of the browser contents resizing browser window as necessary.
Fields§
§windowId: WindowIDBrowser window id.
width: Option<u64>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 CdpCommand for SetContentsSizeParams
impl CdpCommand for SetContentsSizeParams
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 Default for SetContentsSizeParams
impl Default for SetContentsSizeParams
Source§fn default() -> SetContentsSizeParams
fn default() -> SetContentsSizeParams
Returns the “default value” for a type. Read more
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
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