pub struct ImageUrlArgs { /* private fields */ }Available on crate feature
assistant-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
Available on (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) and (crate features chat-completion-types or assistant-types) only.
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) and (crate features chat-completion-types or assistant-types) only.Either a URL of the image or the base64 encoded image data.
Sourcepub fn detail<VALUE: Into<ImageDetail>>(&mut self, value: VALUE) -> &mut Self
Available on (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) and (crate features chat-completion-types or assistant-types) only.
pub fn detail<VALUE: Into<ImageDetail>>(&mut self, value: VALUE) -> &mut Self
response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) and (crate features chat-completion-types or assistant-types) only.Specifies the detail level of the image. Learn more in the Vision guide.
Sourcepub fn build(&self) -> Result<ImageUrl, OpenAIError>
Available on (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) and (crate features chat-completion-types or assistant-types) only.
pub fn build(&self) -> Result<ImageUrl, OpenAIError>
response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) and (crate features chat-completion-types or assistant-types) only.Trait Implementations§
Source§impl Clone for ImageUrlArgs
Available on (crate features chat-completion-types or assistant-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.
impl Clone for ImageUrlArgs
Available on (crate features
chat-completion-types or assistant-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.Source§fn clone(&self) -> ImageUrlArgs
fn clone(&self) -> ImageUrlArgs
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 ImageUrlArgs
Available on (crate features chat-completion-types or assistant-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.
impl Debug for ImageUrlArgs
Available on (crate features
chat-completion-types or assistant-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.Source§impl Default for ImageUrlArgs
Available on (crate features chat-completion-types or assistant-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.
impl Default for ImageUrlArgs
Available on (crate features
chat-completion-types or assistant-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.Auto Trait Implementations§
impl Freeze for ImageUrlArgs
impl RefUnwindSafe for ImageUrlArgs
impl Send for ImageUrlArgs
impl Sync for ImageUrlArgs
impl Unpin 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