pub struct GetEncodedResponseReturn { /* private fields */ }Available on crate features
experimental and Audits and Network only.Expand description
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
Implementations§
Source§impl GetEncodedResponseReturn
impl GetEncodedResponseReturn
pub fn new(body: Option<String>, original_size: u32, encoded_size: u32) -> Self
Sourcepub fn body(&self) -> Option<&String>
pub fn body(&self) -> Option<&String>
The encoded body as a base64 string. Omitted if sizeOnly is true.
Sourcepub fn original_size(&self) -> u32
pub fn original_size(&self) -> u32
Size before re-encoding.
Sourcepub fn encoded_size(&self) -> u32
pub fn encoded_size(&self) -> u32
Size after re-encoding.
Trait Implementations§
Source§impl Clone for GetEncodedResponseReturn
impl Clone for GetEncodedResponseReturn
Source§fn clone(&self) -> GetEncodedResponseReturn
fn clone(&self) -> GetEncodedResponseReturn
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 GetEncodedResponseReturn
impl Debug for GetEncodedResponseReturn
Source§impl<'de> Deserialize<'de> for GetEncodedResponseReturn
impl<'de> Deserialize<'de> for GetEncodedResponseReturn
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
Auto Trait Implementations§
impl Freeze for GetEncodedResponseReturn
impl RefUnwindSafe for GetEncodedResponseReturn
impl Send for GetEncodedResponseReturn
impl Sync for GetEncodedResponseReturn
impl Unpin for GetEncodedResponseReturn
impl UnwindSafe for GetEncodedResponseReturn
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