pub struct SetDeviceMetricsOverride {
pub width: JsUInt,
pub height: JsUInt,
pub device_scale_factor: JsFloat,
pub mobile: bool,
pub scale: Option<JsFloat>,
pub screen_width: Option<JsUInt>,
pub screen_height: Option<JsUInt>,
pub position_x: Option<JsUInt>,
pub position_y: Option<JsUInt>,
pub dont_set_visible_size: Option<bool>,
pub screen_orientation: Option<ScreenOrientation>,
pub viewport: Option<Viewport>,
}
Fields§
§width: JsUInt
§height: JsUInt
§device_scale_factor: JsFloat
§mobile: bool
§scale: Option<JsFloat>
§screen_width: Option<JsUInt>
§screen_height: Option<JsUInt>
§position_x: Option<JsUInt>
§position_y: Option<JsUInt>
§dont_set_visible_size: Option<bool>
§screen_orientation: Option<ScreenOrientation>
§viewport: Option<Viewport>
Trait Implementations§
Source§impl Clone for SetDeviceMetricsOverride
impl Clone for SetDeviceMetricsOverride
Source§fn clone(&self) -> SetDeviceMetricsOverride
fn clone(&self) -> SetDeviceMetricsOverride
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 SetDeviceMetricsOverride
impl Debug for SetDeviceMetricsOverride
Source§impl<'de> Deserialize<'de> for SetDeviceMetricsOverride
impl<'de> Deserialize<'de> for SetDeviceMetricsOverride
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 Method for SetDeviceMetricsOverride
impl Method for SetDeviceMetricsOverride
const NAME: &'static str = "Page.setDeviceMetricsOverride"
type ReturnObject = SetDeviceMetricsOverrideReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for SetDeviceMetricsOverride
impl PartialEq for SetDeviceMetricsOverride
Source§impl Serialize for SetDeviceMetricsOverride
impl Serialize for SetDeviceMetricsOverride
impl StructuralPartialEq for SetDeviceMetricsOverride
Auto Trait Implementations§
impl Freeze for SetDeviceMetricsOverride
impl RefUnwindSafe for SetDeviceMetricsOverride
impl Send for SetDeviceMetricsOverride
impl Sync for SetDeviceMetricsOverride
impl Unpin for SetDeviceMetricsOverride
impl UnwindSafe for SetDeviceMetricsOverride
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