pub enum MessageContent {
Text(String),
Parts(Vec<ContentPart>),
}Expand description
Message content can be either a simple string or structured parts
Variants§
Text(String)
Simple text content
Parts(Vec<ContentPart>)
Structured content parts (for multimodal messages)
Implementations§
Trait Implementations§
Source§impl Clone for MessageContent
impl Clone for MessageContent
Source§fn clone(&self) -> MessageContent
fn clone(&self) -> MessageContent
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 MessageContent
impl Debug for MessageContent
Source§impl From<&str> for MessageContent
impl From<&str> for MessageContent
Source§impl From<String> for MessageContent
impl From<String> for MessageContent
Source§impl From<Vec<ContentPart>> for MessageContent
impl From<Vec<ContentPart>> for MessageContent
Source§fn from(parts: Vec<ContentPart>) -> Self
fn from(parts: Vec<ContentPart>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MessageContent
impl RefUnwindSafe for MessageContent
impl Send for MessageContent
impl Sync for MessageContent
impl Unpin for MessageContent
impl UnsafeUnpin for MessageContent
impl UnwindSafe for MessageContent
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