Struct cdp::emulation::SetEmulatedMediaCommand [] [src]

pub struct SetEmulatedMediaCommand<'a> {
    pub media: Cow<'a, str>,
}

Emulates the given media for CSS media queries.

Command Emulation.setEmulatedMedia

Domain Module: cdp::emulation
Command Struct: cdp::emulation::SetEmulatedMediaCommand
Response Struct: cdp::emulation::SetEmulatedMediaResponse

Fields

Media type to emulate. Empty string disables the override.

Trait Implementations

impl<'a> Clone for SetEmulatedMediaCommand<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for SetEmulatedMediaCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for SetEmulatedMediaCommand<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for SetEmulatedMediaCommand<'a>
[src]

COMMAND_NAME: &'static str = "Emulation.setEmulatedMedia"

impl<'a> SerializeCdpCommand for SetEmulatedMediaCommand<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpCommand<'de> for SetEmulatedMediaCommand<'a>
[src]

[src]

impl<'b, 'a> HasCdpResponse<'b> for SetEmulatedMediaCommand<'a>
[src]