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
request_id: RequestId<'a>
Identifier of the network request to get content for.
encoding: GetEncodedResponseCommandEncoding
The encoding to use.
quality: Option<f64>
The quality of the encoding (0-1). (defaults to 1)
size_only: Option<bool>
Whether to only return the size information (defaults to false).
Trait Implementations
impl<'a> Clone for GetEncodedResponseCommand<'a>[src]
fn clone(&self) -> GetEncodedResponseCommand<'a>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'a> Debug for GetEncodedResponseCommand<'a>[src]
impl<'a> PartialEq for GetEncodedResponseCommand<'a>[src]
fn eq(&self, __arg_0: &GetEncodedResponseCommand<'a>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &GetEncodedResponseCommand<'a>) -> bool[src]
This method tests for !=.
impl<'a> CdpCommand for GetEncodedResponseCommand<'a>[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Audits.getEncodedResponse"
impl<'a> SerializeCdpCommand for GetEncodedResponseCommand<'a>[src]
fn command_name(&self) -> &str[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
S: Serializer,
impl<'de, 'a> DeserializeCdpCommand<'de> for GetEncodedResponseCommand<'a>[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>, [src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,