pub struct InputImageContent2 {
pub image_url: Option<String>,
pub file_id: Option<String>,
pub detail: Detail,
}
Fields§
§image_url: Option<String>
The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.
file_id: Option<String>
The ID of the file to be sent to the model.
detail: Detail
The detail level of the image to be sent to the model. One of high
, low
, or auto
. Defaults to auto
.
Implementations§
Source§impl InputImageContent2
impl InputImageContent2
Sourcepub fn builder() -> InputImageContent2Builder<((), (), ())>
pub fn builder() -> InputImageContent2Builder<((), (), ())>
Create a builder for building InputImageContent2
.
On the builder, call .image_url(...)
(optional), .file_id(...)
(optional), .detail(...)
to set the values of the fields.
Finally, call .build()
to create the instance of InputImageContent2
.
Trait Implementations§
Source§impl Clone for InputImageContent2
impl Clone for InputImageContent2
Source§fn clone(&self) -> InputImageContent2
fn clone(&self) -> InputImageContent2
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 InputImageContent2
impl Debug for InputImageContent2
Source§impl<'de> Deserialize<'de> for InputImageContent2
impl<'de> Deserialize<'de> for InputImageContent2
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InputImageContent2
impl PartialEq for InputImageContent2
Source§impl Serialize for InputImageContent2
impl Serialize for InputImageContent2
impl StructuralPartialEq for InputImageContent2
Auto Trait Implementations§
impl Freeze for InputImageContent2
impl RefUnwindSafe for InputImageContent2
impl Send for InputImageContent2
impl Sync for InputImageContent2
impl Unpin for InputImageContent2
impl UnwindSafe for InputImageContent2
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