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§
Source§impl SetContentsSizeParams
impl SetContentsSizeParams
pub fn new(window_id: impl Into<WindowId>) -> SetContentsSizeParams
Source§impl SetContentsSizeParams
impl SetContentsSizeParams
pub fn builder() -> SetContentsSizeParamsBuilder
Source§impl SetContentsSizeParams
impl SetContentsSizeParams
pub const IDENTIFIER: &'static str = "Browser.setContentsSize"
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 Command for SetContentsSizeParams
impl Command for SetContentsSizeParams
Source§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<SetContentsSizeParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetContentsSizeParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for SetContentsSizeParams
impl Method for SetContentsSizeParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNodeSource§impl MethodType for SetContentsSizeParams
impl MethodType for SetContentsSizeParams
Source§impl PartialEq for SetContentsSizeParams
impl PartialEq for SetContentsSizeParams
Source§impl Serialize for SetContentsSizeParams
impl Serialize for SetContentsSizeParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 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