pub struct MultimodalImage {
pub data: String,
pub mime_type: String,
}Expand description
An image in multimodal input
Fields§
§data: StringBase64-encoded image data
mime_type: StringMIME type (e.g., “image/jpeg”, “image/png”)
Trait Implementations§
Source§impl Clone for MultimodalImage
impl Clone for MultimodalImage
Source§fn clone(&self) -> MultimodalImage
fn clone(&self) -> MultimodalImage
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 MultimodalImage
impl Debug for MultimodalImage
Source§impl<'de> Deserialize<'de> for MultimodalImage
impl<'de> Deserialize<'de> for MultimodalImage
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 MultimodalImage
impl RefUnwindSafe for MultimodalImage
impl Send for MultimodalImage
impl Sync for MultimodalImage
impl Unpin for MultimodalImage
impl UnsafeUnpin for MultimodalImage
impl UnwindSafe for MultimodalImage
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