pub enum Part {
Text {
text: String,
},
Image {
inline_data: Option<ImageContent>,
},
}
Expand description
Define an enum to represent different types of parts in the content.
Variantsยง
Text
Represents a text part in the content.
Image
Represents an image part in the content.
Fields
ยง
inline_data: Option<ImageContent>
Implementationsยง
Trait Implementationsยง
Sourceยงimpl<'de> Deserialize<'de> for Part
impl<'de> Deserialize<'de> for Part
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
Auto Trait Implementationsยง
impl Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnwindSafe for Part
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