pub struct InputImageBuilder { /* private fields */ }
Expand description
Builder for InputImage
.
Implementations§
Source§impl InputImageBuilder
impl InputImageBuilder
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 InputImageBuilder
impl Clone for InputImageBuilder
Source§fn clone(&self) -> InputImageBuilder
fn clone(&self) -> InputImageBuilder
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 InputImageBuilder
impl RefUnwindSafe for InputImageBuilder
impl Send for InputImageBuilder
impl Sync for InputImageBuilder
impl Unpin for InputImageBuilder
impl UnwindSafe for InputImageBuilder
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