pub struct VisionPrompt {
pub image: String,
pub prompt: Option<String>,
}Expand description
Prompt structure for vision models
Fields§
§image: StringURL or base64-encoded string of the image
prompt: Option<String>Optional prompt text accompanying the image
Trait Implementations§
Source§impl Clone for VisionPrompt
impl Clone for VisionPrompt
Source§fn clone(&self) -> VisionPrompt
fn clone(&self) -> VisionPrompt
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 VisionPrompt
impl Debug for VisionPrompt
Source§impl<'de> Deserialize<'de> for VisionPrompt
impl<'de> Deserialize<'de> for VisionPrompt
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 VisionPrompt
impl RefUnwindSafe for VisionPrompt
impl Send for VisionPrompt
impl Sync for VisionPrompt
impl Unpin for VisionPrompt
impl UnwindSafe for VisionPrompt
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