pub struct SetEmulatedMedia {
pub method: SetEmulatedMediaMethod,
pub params: SetEmulatedMediaParams,
}Expand description
Emulates the given media type or media feature for CSS media queries. setEmulatedMedia
Fields§
§method: SetEmulatedMediaMethod§params: SetEmulatedMediaParamsImplementations§
Source§impl SetEmulatedMedia
impl SetEmulatedMedia
pub fn builder() -> SetEmulatedMediaBuilder
Source§impl SetEmulatedMedia
impl SetEmulatedMedia
pub const IDENTIFIER: &'static str = "Emulation.setEmulatedMedia"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetEmulatedMedia
impl Clone for SetEmulatedMedia
Source§fn clone(&self) -> SetEmulatedMedia
fn clone(&self) -> SetEmulatedMedia
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 SetEmulatedMedia
impl CommandResult for SetEmulatedMedia
type Result = SetEmulatedMediaResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for SetEmulatedMedia
impl Debug for SetEmulatedMedia
Source§impl<'de> Deserialize<'de> for SetEmulatedMedia
impl<'de> Deserialize<'de> for SetEmulatedMedia
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<SetEmulatedMedia> for BrowserProtocolCommands
impl From<SetEmulatedMedia> for BrowserProtocolCommands
Source§fn from(v: SetEmulatedMedia) -> Self
fn from(v: SetEmulatedMedia) -> Self
Converts to this type from the input type.
Source§impl From<SetEmulatedMedia> for Command
impl From<SetEmulatedMedia> for Command
Source§fn from(v: SetEmulatedMedia) -> Self
fn from(v: SetEmulatedMedia) -> Self
Converts to this type from the input type.
Source§impl From<SetEmulatedMedia> for EmulationCommands
impl From<SetEmulatedMedia> for EmulationCommands
Source§fn from(v: SetEmulatedMedia) -> Self
fn from(v: SetEmulatedMedia) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetEmulatedMedia
impl PartialEq for SetEmulatedMedia
Source§impl Serialize for SetEmulatedMedia
impl Serialize for SetEmulatedMedia
Source§impl TryFrom<BrowserProtocolCommands> for SetEmulatedMedia
impl TryFrom<BrowserProtocolCommands> for SetEmulatedMedia
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, <SetEmulatedMedia as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SetEmulatedMedia as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for SetEmulatedMedia
impl TryFrom<Command> for SetEmulatedMedia
Source§impl TryFrom<EmulationCommands> for SetEmulatedMedia
impl TryFrom<EmulationCommands> for SetEmulatedMedia
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, <SetEmulatedMedia as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <SetEmulatedMedia as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SetEmulatedMedia
Auto Trait Implementations§
impl Freeze for SetEmulatedMedia
impl RefUnwindSafe for SetEmulatedMedia
impl Send for SetEmulatedMedia
impl Sync for SetEmulatedMedia
impl Unpin for SetEmulatedMedia
impl UnsafeUnpin for SetEmulatedMedia
impl UnwindSafe for SetEmulatedMedia
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