pub struct AddScreenParams {
pub left: i64,
pub top: i64,
pub width: i64,
pub height: i64,
pub work_area_insets: Option<WorkAreaInsets>,
pub device_pixel_ratio: Option<f64>,
pub rotation: Option<i64>,
pub color_depth: Option<i64>,
pub label: Option<String>,
pub is_internal: Option<bool>,
}Expand description
Add a new screen to the device. Only supported in headless mode. addScreen
Fields§
§left: i64Offset of the left edge of the screen in pixels.
top: i64Offset of the top edge of the screen in pixels.
width: i64The width of the screen in pixels.
height: i64The height of the screen in pixels.
work_area_insets: Option<WorkAreaInsets>Specifies the screen’s work area. Default is entire screen.
device_pixel_ratio: Option<f64>Specifies the screen’s device pixel ratio. Default is 1.
rotation: Option<i64>Specifies the screen’s rotation angle. Available values are 0, 90, 180 and 270. Default is 0.
color_depth: Option<i64>Specifies the screen’s color depth in bits. Default is 24.
label: Option<String>Specifies the descriptive label for the screen. Default is none.
is_internal: Option<bool>Indicates whether the screen is internal to the device or external, attached to the device. Default is false.
Implementations§
Source§impl AddScreenParams
impl AddScreenParams
pub fn builder() -> AddScreenParamsBuilder
Source§impl AddScreenParams
impl AddScreenParams
pub const IDENTIFIER: &'static str = "Emulation.addScreen"
Trait Implementations§
Source§impl Clone for AddScreenParams
impl Clone for AddScreenParams
Source§fn clone(&self) -> AddScreenParams
fn clone(&self) -> AddScreenParams
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 AddScreenParams
impl Command for AddScreenParams
Source§impl Debug for AddScreenParams
impl Debug for AddScreenParams
Source§impl<'de> Deserialize<'de> for AddScreenParams
impl<'de> Deserialize<'de> for AddScreenParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AddScreenParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AddScreenParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for AddScreenParams
impl Method for AddScreenParams
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 AddScreenParams
impl MethodType for AddScreenParams
Source§impl PartialEq for AddScreenParams
impl PartialEq for AddScreenParams
Source§impl Serialize for AddScreenParams
impl Serialize for AddScreenParams
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 AddScreenParams
Auto Trait Implementations§
impl Freeze for AddScreenParams
impl RefUnwindSafe for AddScreenParams
impl Send for AddScreenParams
impl Sync for AddScreenParams
impl Unpin for AddScreenParams
impl UnwindSafe for AddScreenParams
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