Struct chromiumoxide_cdp::cdp::browser_protocol::emulation::SetEmulatedMediaParams [−][src]
pub struct SetEmulatedMediaParams { pub media: Option<String>, pub features: Option<Vec<MediaFeature>>, }
Expand description
Emulates the given media type or media feature for CSS media queries. setEmulatedMedia
Fields
media: Option<String>
Media type to emulate. Empty string disables the override.
features: Option<Vec<MediaFeature>>
Media features to emulate.
Implementations
Trait Implementations
type Response = SetEmulatedMediaReturns
type Response = SetEmulatedMediaReturns
The type of the response this request triggers on the chromium server
Returns the “default value” for a type. Read more
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
The whole string identifier for this method like: DOM.removeNode
The name of the domain this method belongs to: DOM
The standalone identifier of the method inside the domain: removeNode
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SetEmulatedMediaParams
impl Send for SetEmulatedMediaParams
impl Sync for SetEmulatedMediaParams
impl Unpin for SetEmulatedMediaParams
impl UnwindSafe for SetEmulatedMediaParams
Blanket Implementations
Mutably borrows from an owned value. Read more