pub struct ImagePart {
pub data: String,
pub mime_type: String,
}Expand description
Inline image data for multimodal messages.
Fields§
§data: StringBase64-encoded image data.
mime_type: StringMIME type (e.g. “image/jpeg”, “image/png”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImagePart
impl<'de> Deserialize<'de> for ImagePart
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 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