pub struct EncodedImage {
pub data_url: String,
pub compression: CompressedImage,
}Expand description
An image (or other media) encoded as a base64 data URL, plus info about
any compression applied. compression.bytes is emptied after the data
URL is built to avoid holding a second copy of the payload.
Fields§
§data_url: String§compression: CompressedImageTrait Implementations§
Auto Trait Implementations§
impl Freeze for EncodedImage
impl RefUnwindSafe for EncodedImage
impl Send for EncodedImage
impl Sync for EncodedImage
impl Unpin for EncodedImage
impl UnsafeUnpin for EncodedImage
impl UnwindSafe for EncodedImage
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