pub struct UserMessageContentInputImage {
pub image_url: String,
pub detail: ImageDetail,
}Available on crate feature
realtime only.Fields§
§image_url: StringBase64-encoded image bytes (for input_image) as a data URI.
For example data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA....
Supported formats are PNG and JPEG.
detail: ImageDetailThe detail level of the image (for input_image). auto will default to high.
Trait Implementations§
Source§impl Clone for UserMessageContentInputImage
impl Clone for UserMessageContentInputImage
Source§fn clone(&self) -> UserMessageContentInputImage
fn clone(&self) -> UserMessageContentInputImage
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 UserMessageContentInputImage
impl Debug for UserMessageContentInputImage
Source§impl<'de> Deserialize<'de> for UserMessageContentInputImage
impl<'de> Deserialize<'de> for UserMessageContentInputImage
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 UserMessageContentInputImage
impl RefUnwindSafe for UserMessageContentInputImage
impl Send for UserMessageContentInputImage
impl Sync for UserMessageContentInputImage
impl Unpin for UserMessageContentInputImage
impl UnwindSafe for UserMessageContentInputImage
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