pub struct UpdateScreenParams {
pub screenId: ScreenId,
pub left: Option<i64>,
pub top: Option<i64>,
pub width: Option<u64>,
pub height: Option<i64>,
pub workAreaInsets: Option<WorkAreaInsets>,
pub devicePixelRatio: Option<f64>,
pub rotation: Option<i64>,
pub colorDepth: Option<i64>,
pub label: Option<String>,
pub isInternal: Option<bool>,
}Expand description
Updates specified screen parameters. Only supported in headless mode.
Fields§
§screenId: ScreenIdTarget screen identifier.
left: Option<i64>Offset of the left edge of the screen in pixels.
top: Option<i64>Offset of the top edge of the screen in pixels.
width: Option<u64>The width of the screen in pixels.
height: Option<i64>The height of the screen in pixels.
workAreaInsets: Option<WorkAreaInsets>Specifies the screen’s work area.
devicePixelRatio: Option<f64>Specifies the screen’s device pixel ratio.
rotation: Option<i64>Specifies the screen’s rotation angle. Available values are 0, 90, 180 and 270.
colorDepth: Option<i64>Specifies the screen’s color depth in bits.
label: Option<String>Specifies the descriptive label for the screen.
isInternal: Option<bool>Indicates whether the screen is internal to the device or external, attached to the device. Default is false.
Trait Implementations§
Source§impl Clone for UpdateScreenParams
impl Clone for UpdateScreenParams
Source§fn clone(&self) -> UpdateScreenParams
fn clone(&self) -> UpdateScreenParams
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 UpdateScreenParams
impl Debug for UpdateScreenParams
Source§impl Default for UpdateScreenParams
impl Default for UpdateScreenParams
Source§fn default() -> UpdateScreenParams
fn default() -> UpdateScreenParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateScreenParams
impl<'de> Deserialize<'de> for UpdateScreenParams
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 UpdateScreenParams
impl RefUnwindSafe for UpdateScreenParams
impl Send for UpdateScreenParams
impl Sync for UpdateScreenParams
impl Unpin for UpdateScreenParams
impl UnsafeUnpin for UpdateScreenParams
impl UnwindSafe for UpdateScreenParams
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