pub struct ImageUrlArgs { /* private fields */ }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.Expand description
Builder for ImageUrl.
Implementations§
Source§impl ImageUrlArgs
impl ImageUrlArgs
Sourcepub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Either a URL of the image or the base64 encoded image data.
Sourcepub fn detail<VALUE: Into<ImageDetail>>(&mut self, value: VALUE) -> &mut Self
pub fn detail<VALUE: Into<ImageDetail>>(&mut self, value: VALUE) -> &mut Self
Specifies the detail level of the image. Learn more in the Vision guide.
Trait Implementations§
Source§impl Clone for ImageUrlArgs
impl Clone for ImageUrlArgs
Source§fn clone(&self) -> ImageUrlArgs
fn clone(&self) -> ImageUrlArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageUrlArgs
impl Debug for ImageUrlArgs
Auto Trait Implementations§
impl Freeze for ImageUrlArgs
impl RefUnwindSafe for ImageUrlArgs
impl Send for ImageUrlArgs
impl Sync for ImageUrlArgs
impl Unpin for ImageUrlArgs
impl UnsafeUnpin for ImageUrlArgs
impl UnwindSafe for ImageUrlArgs
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