Struct cdp::audits::GetEncodedResponseCommand [] [src]

pub struct GetEncodedResponseCommand<'a> {
    pub request_id: RequestId<'a>,
    pub encoding: GetEncodedResponseCommandEncoding,
    pub quality: Option<f64>,
    pub size_only: Option<bool>,
}

[Experimental] Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.

Command Audits.getEncodedResponse

Domain Module: cdp::audits
Command Struct: cdp::audits::GetEncodedResponseCommand
Response Struct: cdp::audits::GetEncodedResponseResponse

Fields

Identifier of the network request to get content for.

The encoding to use.

The quality of the encoding (0-1). (defaults to 1)

Whether to only return the size information (defaults to false).

Trait Implementations

impl<'a> Clone for GetEncodedResponseCommand<'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 GetEncodedResponseCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for GetEncodedResponseCommand<'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 GetEncodedResponseCommand<'a>
[src]

COMMAND_NAME: &'static str = "Audits.getEncodedResponse"

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

[src]

[src]

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

[src]

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