pub struct GetEncodedResponseCommandBuilder { /* private fields */ }Available on crate features
experimental and Audits and Network only.Implementations§
Source§impl GetEncodedResponseCommandBuilder
impl GetEncodedResponseCommandBuilder
Sourcepub fn request_id(&mut self, v: RequestId) -> &mut Self
pub fn request_id(&mut self, v: RequestId) -> &mut Self
Identifier of the network request to get content for.
Sourcepub fn encoding(&mut self, v: GetEncodedResponseCommandEncoding) -> &mut Self
pub fn encoding(&mut self, v: GetEncodedResponseCommandEncoding) -> &mut Self
The encoding to use.
Sourcepub fn quality(&mut self, v: f64) -> &mut Self
pub fn quality(&mut self, v: f64) -> &mut Self
The quality of the encoding (0-1). (defaults to 1)
Sourcepub fn size_only(&mut self, v: bool) -> &mut Self
pub fn size_only(&mut self, v: bool) -> &mut Self
Whether to only return the size information (defaults to false).
pub fn build(&mut self) -> Result<GetEncodedResponseCommand, &'static str>
Trait Implementations§
Source§impl Clone for GetEncodedResponseCommandBuilder
impl Clone for GetEncodedResponseCommandBuilder
Source§fn clone(&self) -> GetEncodedResponseCommandBuilder
fn clone(&self) -> GetEncodedResponseCommandBuilder
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 GetEncodedResponseCommandBuilder
impl RefUnwindSafe for GetEncodedResponseCommandBuilder
impl Send for GetEncodedResponseCommandBuilder
impl Sync for GetEncodedResponseCommandBuilder
impl Unpin for GetEncodedResponseCommandBuilder
impl UnwindSafe for GetEncodedResponseCommandBuilder
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