pub struct GetEncodedResponseBuilder { /* private fields */ }Expand description
Builder for GetEncodedResponse.
Implementations§
Source§impl GetEncodedResponseBuilder
impl GetEncodedResponseBuilder
Sourcepub fn request_id<VALUE: Into<RequestId>>(&mut self, value: VALUE) -> &mut Self
pub fn request_id<VALUE: Into<RequestId>>(&mut self, value: VALUE) -> &mut Self
Identifier of the network request to get content for.
Sourcepub fn encoding<VALUE: Into<GetEncodedResponseEncodingOption>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn encoding<VALUE: Into<GetEncodedResponseEncodingOption>>( &mut self, value: VALUE, ) -> &mut Self
The encoding to use.
Sourcepub fn quality<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn quality<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
The quality of the encoding (0-1). (defaults to 1)
Sourcepub fn size_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn size_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether to only return the size information (defaults to false).
Sourcepub fn build(
&self,
) -> Result<GetEncodedResponse, GetEncodedResponseBuilderError>
pub fn build( &self, ) -> Result<GetEncodedResponse, GetEncodedResponseBuilderError>
Trait Implementations§
Source§impl Clone for GetEncodedResponseBuilder
impl Clone for GetEncodedResponseBuilder
Source§fn clone(&self) -> GetEncodedResponseBuilder
fn clone(&self) -> GetEncodedResponseBuilder
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 moreAuto Trait Implementations§
impl Freeze for GetEncodedResponseBuilder
impl RefUnwindSafe for GetEncodedResponseBuilder
impl Send for GetEncodedResponseBuilder
impl Sync for GetEncodedResponseBuilder
impl Unpin for GetEncodedResponseBuilder
impl UnsafeUnpin for GetEncodedResponseBuilder
impl UnwindSafe for GetEncodedResponseBuilder
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