pub struct GetEncodedResponseReturnObject {
pub body: Option<String>,
pub original_size: JsUInt,
pub encoded_size: JsUInt,
}Expand description
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
Fields§
§body: Option<String>The encoded body as a base64 string. Omitted if sizeOnly is true.
original_size: JsUIntSize before re-encoding.
encoded_size: JsUIntSize after re-encoding.
Trait Implementations§
Source§impl Clone for GetEncodedResponseReturnObject
impl Clone for GetEncodedResponseReturnObject
Source§fn clone(&self) -> GetEncodedResponseReturnObject
fn clone(&self) -> GetEncodedResponseReturnObject
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<'de> Deserialize<'de> for GetEncodedResponseReturnObject
impl<'de> Deserialize<'de> for GetEncodedResponseReturnObject
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 PartialEq for GetEncodedResponseReturnObject
impl PartialEq for GetEncodedResponseReturnObject
Source§fn eq(&self, other: &GetEncodedResponseReturnObject) -> bool
fn eq(&self, other: &GetEncodedResponseReturnObject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetEncodedResponseReturnObject
Auto Trait Implementations§
impl Freeze for GetEncodedResponseReturnObject
impl RefUnwindSafe for GetEncodedResponseReturnObject
impl Send for GetEncodedResponseReturnObject
impl Sync for GetEncodedResponseReturnObject
impl Unpin for GetEncodedResponseReturnObject
impl UnsafeUnpin for GetEncodedResponseReturnObject
impl UnwindSafe for GetEncodedResponseReturnObject
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