pub enum UIMessagePart {
Text(TextUIPart),
Reasoning(ReasoningUIPart),
Tool(ToolUIPart),
SourceUrl(SourceUrlUIPart),
SourceDocument(SourceDocumentUIPart),
File(FileUIPart),
StepStart(StepStartUIPart),
Data(DataUIPart),
}Expand description
A part of a UI message.
Variants§
Text(TextUIPart)
Text content part.
Reasoning(ReasoningUIPart)
Reasoning content part.
Tool(ToolUIPart)
Tool invocation part.
SourceUrl(SourceUrlUIPart)
URL source reference.
SourceDocument(SourceDocumentUIPart)
Document source reference.
File(FileUIPart)
File attachment.
StepStart(StepStartUIPart)
Step start marker.
Data(DataUIPart)
Custom data part.
Trait Implementations§
Source§impl Clone for UIMessagePart
impl Clone for UIMessagePart
Source§fn clone(&self) -> UIMessagePart
fn clone(&self) -> UIMessagePart
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 UIMessagePart
impl Debug for UIMessagePart
Source§impl<'de> Deserialize<'de> for UIMessagePart
impl<'de> Deserialize<'de> for UIMessagePart
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 UIMessagePart
impl PartialEq for UIMessagePart
Source§impl Serialize for UIMessagePart
impl Serialize for UIMessagePart
impl StructuralPartialEq for UIMessagePart
Auto Trait Implementations§
impl Freeze for UIMessagePart
impl RefUnwindSafe for UIMessagePart
impl Send for UIMessagePart
impl Sync for UIMessagePart
impl Unpin for UIMessagePart
impl UnwindSafe for UIMessagePart
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