pub struct ImageFile {
pub file_id: String,
pub detail: Option<ImageDetail>,
}
Fields§
§file_id: String
The File ID of the image in the message content. Set purpose="vision"
when uploading the File if you need to later display the file content.
detail: Option<ImageDetail>
Specifies the detail level of the image if specified by the user. low
uses fewer tokens, you can opt in to high resolution using high
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImageFile
impl<'de> Deserialize<'de> for ImageFile
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 ImageFile
Auto Trait Implementations§
impl Freeze for ImageFile
impl RefUnwindSafe for ImageFile
impl Send for ImageFile
impl Sync for ImageFile
impl Unpin for ImageFile
impl UnwindSafe for ImageFile
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