Struct cdp::audits::GetEncodedResponseResponse
[−]
[src]
pub struct GetEncodedResponseResponse<'a> {
pub body: Option<Cow<'a, str>>,
pub original_size: i32,
pub encoded_size: i32,
}[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
body: Option<Cow<'a, str>>
The encoded body as a base64 string. Omitted if sizeOnly is true.
original_size: i32
Size before re-encoding.
encoded_size: i32
Size after re-encoding.
Trait Implementations
impl<'a> Clone for GetEncodedResponseResponse<'a>[src]
fn clone(&self) -> GetEncodedResponseResponse<'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 GetEncodedResponseResponse<'a>[src]
impl<'a> PartialEq for GetEncodedResponseResponse<'a>[src]
fn eq(&self, __arg_0: &GetEncodedResponseResponse<'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: &GetEncodedResponseResponse<'a>) -> bool[src]
This method tests for !=.
impl<'a> CdpCommand for GetEncodedResponseResponse<'a>[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Audits.getEncodedResponse"