pub struct ImageUrl {
pub url: String,
pub detail: Option<ImageDetail>,
}Available on crate feature
chat-completion-types and (crate features assistant-types or audio-types or batch-types or chat-completion-types or image-types or realtime-types or response-types or vectorstore-types or video-types) and (crate features assistant-types or chat-completion-types) only.Fields§
§url: StringEither a URL of the image or the base64 encoded image data.
detail: Option<ImageDetail>Specifies the detail level of the image. Learn more in the Vision guide.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImageUrl
impl<'de> Deserialize<'de> for ImageUrl
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 ImageUrl
Auto Trait Implementations§
impl Freeze for ImageUrl
impl RefUnwindSafe for ImageUrl
impl Send for ImageUrl
impl Sync for ImageUrl
impl Unpin for ImageUrl
impl UnsafeUnpin for ImageUrl
impl UnwindSafe for ImageUrl
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