pub struct ChatCompletionRequestMessageContentPartImageImageUrl {
    pub url: String,
    pub detail: Option<ChatCompletionRequestMessageContentPartImageImageUrlDetail>,
}Fields§
§url: StringEither a URL of the image or the base64 encoded image data.
detail: Option<ChatCompletionRequestMessageContentPartImageImageUrlDetail>Specifies the detail level of the image. Learn more in the Vision guide.
Implementations§
Source§impl ChatCompletionRequestMessageContentPartImageImageUrl
 
impl ChatCompletionRequestMessageContentPartImageImageUrl
Sourcepub fn builder() -> ChatCompletionRequestMessageContentPartImageImageUrlBuilder<((), ())>
 
pub fn builder() -> ChatCompletionRequestMessageContentPartImageImageUrlBuilder<((), ())>
Create a builder for building ChatCompletionRequestMessageContentPartImageImageUrl.
On the builder, call .url(...), .detail(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ChatCompletionRequestMessageContentPartImageImageUrl.
Trait Implementations§
Source§impl Clone for ChatCompletionRequestMessageContentPartImageImageUrl
 
impl Clone for ChatCompletionRequestMessageContentPartImageImageUrl
Source§fn clone(&self) -> ChatCompletionRequestMessageContentPartImageImageUrl
 
fn clone(&self) -> ChatCompletionRequestMessageContentPartImageImageUrl
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<'de> Deserialize<'de> for ChatCompletionRequestMessageContentPartImageImageUrl
 
impl<'de> Deserialize<'de> for ChatCompletionRequestMessageContentPartImageImageUrl
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 ChatCompletionRequestMessageContentPartImageImageUrl
 
impl PartialEq for ChatCompletionRequestMessageContentPartImageImageUrl
Source§fn eq(
    &self,
    other: &ChatCompletionRequestMessageContentPartImageImageUrl,
) -> bool
 
fn eq( &self, other: &ChatCompletionRequestMessageContentPartImageImageUrl, ) -> bool
Tests for 
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChatCompletionRequestMessageContentPartImageImageUrl
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestMessageContentPartImageImageUrl
impl RefUnwindSafe for ChatCompletionRequestMessageContentPartImageImageUrl
impl Send for ChatCompletionRequestMessageContentPartImageImageUrl
impl Sync for ChatCompletionRequestMessageContentPartImageImageUrl
impl Unpin for ChatCompletionRequestMessageContentPartImageImageUrl
impl UnwindSafe for ChatCompletionRequestMessageContentPartImageImageUrl
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