pub enum OpenAIContentPart {
Text {
text: String,
},
ImageUrl {
image_url: OpenAIImageUrl,
},
}Expand description
OpenAI-compatible multimodal content part.
Variants§
Text
Text content part.
ImageUrl
Image URL content part.
Fields
§
image_url: OpenAIImageUrlImage URL payload.
Implementations§
Trait Implementations§
Source§impl Clone for OpenAIContentPart
impl Clone for OpenAIContentPart
Source§fn clone(&self) -> OpenAIContentPart
fn clone(&self) -> OpenAIContentPart
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 OpenAIContentPart
impl Debug for OpenAIContentPart
Source§impl<'de> Deserialize<'de> for OpenAIContentPart
impl<'de> Deserialize<'de> for OpenAIContentPart
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 OpenAIContentPart
impl PartialEq for OpenAIContentPart
Source§impl Serialize for OpenAIContentPart
impl Serialize for OpenAIContentPart
impl StructuralPartialEq for OpenAIContentPart
Auto Trait Implementations§
impl Freeze for OpenAIContentPart
impl RefUnwindSafe for OpenAIContentPart
impl Send for OpenAIContentPart
impl Sync for OpenAIContentPart
impl Unpin for OpenAIContentPart
impl UnsafeUnpin for OpenAIContentPart
impl UnwindSafe for OpenAIContentPart
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