pub struct InputImageArgs { /* private fields */ }
Expand description
Builder for InputImage
.
Implementations§
Source§impl InputImageArgs
impl InputImageArgs
Sourcepub fn detail<VALUE: Into<ImageDetail>>(&mut self, value: VALUE) -> &mut Self
pub fn detail<VALUE: Into<ImageDetail>>(&mut self, value: VALUE) -> &mut Self
The detail level of the image to be sent to the model.
Sourcepub fn file_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn file_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The ID of the file to be sent to the model.
Sourcepub fn image_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn image_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
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<InputImage, OpenAIError>
pub fn build(&self) -> Result<InputImage, 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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InputImageArgs
impl RefUnwindSafe for InputImageArgs
impl Send for InputImageArgs
impl Sync for InputImageArgs
impl Unpin 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