pub struct ImagePart {
pub mime: String,
pub bytes: Vec<u8>,
}Expand description
One image travelling to a multimodal model.
Bytes, not base64: the encoding is a wire detail each provider spells differently, so it happens at request construction rather than being carried around pre-encoded.
Fields§
§mime: StringAn image MIME type, e.g. image/png.
bytes: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImagePart
impl RefUnwindSafe for ImagePart
impl Send for ImagePart
impl Sync for ImagePart
impl Unpin for ImagePart
impl UnsafeUnpin for ImagePart
impl UnwindSafe for ImagePart
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