pub struct ImageData {
pub data: Vec<u8>,
pub content_type: String,
pub extension: String,
}Expand description
Image data to be embedded in the document
Fields§
§data: Vec<u8>Raw image bytes
content_type: StringContent type (e.g., “image/png”, “image/jpeg”)
extension: StringFile extension
Implementations§
Auto Trait Implementations§
impl Freeze for ImageData
impl RefUnwindSafe for ImageData
impl Send for ImageData
impl Sync for ImageData
impl Unpin for ImageData
impl UnsafeUnpin for ImageData
impl UnwindSafe for ImageData
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