pub struct SetDeviceMetricsOverride {
pub method: SetDeviceMetricsOverrideMethod,
pub params: SetDeviceMetricsOverrideParams,
}Expand description
Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and “device-width”/“device-height”-related CSS media query results). setDeviceMetricsOverride
Fields§
§method: SetDeviceMetricsOverrideMethod§params: SetDeviceMetricsOverrideParamsImplementations§
Source§impl SetDeviceMetricsOverride
impl SetDeviceMetricsOverride
pub const IDENTIFIER: &'static str = "Emulation.setDeviceMetricsOverride"
pub fn identifier(&self) -> &'static str
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 CommandResult for SetDeviceMetricsOverride
impl CommandResult for SetDeviceMetricsOverride
type Result = SetDeviceMetricsOverrideResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§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 From<SetDeviceMetricsOverride> for BrowserProtocolCommands
impl From<SetDeviceMetricsOverride> for BrowserProtocolCommands
Source§fn from(v: SetDeviceMetricsOverride) -> Self
fn from(v: SetDeviceMetricsOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetDeviceMetricsOverride> for Command
impl From<SetDeviceMetricsOverride> for Command
Source§fn from(v: SetDeviceMetricsOverride) -> Self
fn from(v: SetDeviceMetricsOverride) -> Self
Converts to this type from the input type.
Source§impl From<SetDeviceMetricsOverride> for EmulationCommands
impl From<SetDeviceMetricsOverride> for EmulationCommands
Source§fn from(v: SetDeviceMetricsOverride) -> Self
fn from(v: SetDeviceMetricsOverride) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetDeviceMetricsOverride
impl PartialEq for SetDeviceMetricsOverride
Source§impl Serialize for SetDeviceMetricsOverride
impl Serialize for SetDeviceMetricsOverride
Source§impl TryFrom<BrowserProtocolCommands> for SetDeviceMetricsOverride
impl TryFrom<BrowserProtocolCommands> for SetDeviceMetricsOverride
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <SetDeviceMetricsOverride as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SetDeviceMetricsOverride as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for SetDeviceMetricsOverride
impl TryFrom<Command> for SetDeviceMetricsOverride
Source§impl TryFrom<EmulationCommands> for SetDeviceMetricsOverride
impl TryFrom<EmulationCommands> for SetDeviceMetricsOverride
Source§type Error = EmulationCommands
type Error = EmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: EmulationCommands,
) -> Result<Self, <SetDeviceMetricsOverride as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetDeviceMetricsOverride as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
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 UnsafeUnpin 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