pub struct GetEncodedResponse {
pub request_id: RequestId,
pub encoding: GetEncodedResponseEncodingOption,
pub quality: Option<JsFloat>,
pub size_only: Option<bool>,
}Expand description
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
Fields§
§request_id: RequestIdIdentifier of the network request to get content for.
encoding: GetEncodedResponseEncodingOptionThe encoding to use.
quality: Option<JsFloat>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§
Source§impl Clone for GetEncodedResponse
impl Clone for GetEncodedResponse
Source§fn clone(&self) -> GetEncodedResponse
fn clone(&self) -> GetEncodedResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetEncodedResponse
impl Debug for GetEncodedResponse
Source§impl<'de> Deserialize<'de> for GetEncodedResponse
impl<'de> Deserialize<'de> for GetEncodedResponse
Source§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
Source§impl Method for GetEncodedResponse
impl Method for GetEncodedResponse
const NAME: &'static str = "Audits.getEncodedResponse"
type ReturnObject = GetEncodedResponseReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for GetEncodedResponse
impl PartialEq for GetEncodedResponse
Source§impl Serialize for GetEncodedResponse
impl Serialize for GetEncodedResponse
impl StructuralPartialEq for GetEncodedResponse
Auto Trait Implementations§
impl Freeze for GetEncodedResponse
impl RefUnwindSafe for GetEncodedResponse
impl Send for GetEncodedResponse
impl Sync for GetEncodedResponse
impl Unpin for GetEncodedResponse
impl UnsafeUnpin for GetEncodedResponse
impl UnwindSafe for GetEncodedResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more