pub struct InputImageContent {
pub image_url: Option<String>,
pub file_id: Option<String>,
pub detail: InputImageContentDetail,
}
Expand description
An image input to the model. Learn about image inputs.
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: InputImageContentDetail
The detail level of the image to be sent to the model. One of high
, low
, or auto
. Defaults to auto
.
Implementations§
Trait Implementations§
Source§impl Clone for InputImageContent
impl Clone for InputImageContent
Source§fn clone(&self) -> InputImageContent
fn clone(&self) -> InputImageContent
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 InputImageContent
impl Debug for InputImageContent
Source§impl<'de> Deserialize<'de> for InputImageContent
impl<'de> Deserialize<'de> for InputImageContent
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 InputImageContent
impl PartialEq for InputImageContent
Source§impl Serialize for InputImageContent
impl Serialize for InputImageContent
impl StructuralPartialEq for InputImageContent
Auto Trait Implementations§
impl Freeze for InputImageContent
impl RefUnwindSafe for InputImageContent
impl Send for InputImageContent
impl Sync for InputImageContent
impl Unpin for InputImageContent
impl UnwindSafe for InputImageContent
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