pub struct InputImageArgs { /* private fields */ }Expand description
Builder for InputImageContent.
Implementations§
Source§impl InputImageArgs
impl InputImageArgs
Sourcepub fn detail<VALUE>(&mut self, value: VALUE) -> &mut InputImageArgswhere
VALUE: Into<ImageDetail>,
pub fn detail<VALUE>(&mut self, value: VALUE) -> &mut InputImageArgswhere
VALUE: Into<ImageDetail>,
The detail level of the image to be sent to the model. One of high, low, or auto.
Defaults to auto.
Sourcepub fn file_id<VALUE>(&mut self, value: VALUE) -> &mut InputImageArgs
pub fn file_id<VALUE>(&mut self, value: VALUE) -> &mut InputImageArgs
The ID of the file to be sent to the model.
Sourcepub fn image_url<VALUE>(&mut self, value: VALUE) -> &mut InputImageArgs
pub fn image_url<VALUE>(&mut self, value: VALUE) -> &mut InputImageArgs
The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.
Sourcepub fn build(&self) -> Result<InputImageContent, OpenAIError>
pub fn build(&self) -> Result<InputImageContent, OpenAIError>
Trait Implementations§
Source§impl Clone for InputImageArgs
impl Clone for InputImageArgs
Source§fn clone(&self) -> InputImageArgs
fn clone(&self) -> InputImageArgs
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 Default for InputImageArgs
impl Default for InputImageArgs
Source§fn default() -> InputImageArgs
fn default() -> InputImageArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InputImageArgs
impl RefUnwindSafe for InputImageArgs
impl Send for InputImageArgs
impl Sync for InputImageArgs
impl Unpin for InputImageArgs
impl UnsafeUnpin for InputImageArgs
impl UnwindSafe for InputImageArgs
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