Struct chromiumoxide::cdp::browser_protocol::audits::GetEncodedResponseParams[][src]

pub struct GetEncodedResponseParams {
    pub request_id: RequestId,
    pub encoding: GetEncodedResponseEncoding,
    pub quality: Option<f64>,
    pub size_only: Option<bool>,
}

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

Fields

request_id: RequestId

Identifier of the network request to get content for.

encoding: GetEncodedResponseEncoding

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).

Implementations

impl GetEncodedResponseParams[src]

pub fn new(
    request_id: impl Into<RequestId>,
    encoding: impl Into<GetEncodedResponseEncoding>
) -> GetEncodedResponseParams
[src]

impl GetEncodedResponseParams[src]

impl GetEncodedResponseParams[src]

pub const IDENTIFIER: &'static str[src]

Trait Implementations

impl Clone for GetEncodedResponseParams[src]

impl Command for GetEncodedResponseParams[src]

type Response = GetEncodedResponseReturns

The type of the response this request triggers on the chromium server

impl Debug for GetEncodedResponseParams[src]

impl<'de> Deserialize<'de> for GetEncodedResponseParams[src]

impl Method for GetEncodedResponseParams[src]

impl MethodType for GetEncodedResponseParams[src]

impl PartialEq<GetEncodedResponseParams> for GetEncodedResponseParams[src]

impl Serialize for GetEncodedResponseParams[src]

impl StructuralPartialEq for GetEncodedResponseParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,