pub struct ImagePart {
pub image: FileSource,
pub media_type: Option<MediaType>,
pub provider_options: Option<ProviderOptions>,
}Expand description
An image in a user message.
Fields§
§image: FileSourceImage source.
media_type: Option<MediaType>Media type, detected from the bytes when omitted.
provider_options: Option<ProviderOptions>Provider-specific options.
Implementations§
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
impl StructuralPartialEq for ImagePart
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