pub struct ImageInput {
pub path: PathBuf,
pub mime: String,
}Expand description
An image file shown to the model with a user message.
Fields§
§path: PathBufAbsolute path on the host; the provider reads it for each request, so an image removed since is replaced by a note.
mime: StringMIME type, such as image/png.
Trait Implementations§
Source§impl Clone for ImageInput
impl Clone for ImageInput
Source§impl Debug for ImageInput
impl Debug for ImageInput
Source§impl<'de> Deserialize<'de> for ImageInput
impl<'de> Deserialize<'de> for ImageInput
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 Eq for ImageInput
Source§impl PartialEq for ImageInput
impl PartialEq for ImageInput
Source§impl Serialize for ImageInput
impl Serialize for ImageInput
impl StructuralPartialEq for ImageInput
Auto Trait Implementations§
impl Freeze for ImageInput
impl RefUnwindSafe for ImageInput
impl Send for ImageInput
impl Sync for ImageInput
impl Unpin for ImageInput
impl UnsafeUnpin for ImageInput
impl UnwindSafe for ImageInput
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