Struct headless_chrome::protocol::cdp::Page::SetDeviceMetricsOverride
source · 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 copy 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