pub enum DisplayMsg {
User(String),
AssistantText(String),
Thinking {
text: String,
level: Option<String>,
},
ToolCall {
name: String,
args: String,
},
ToolResult {
content: String,
compact: Option<String>,
is_error: bool,
},
BashCommand {
command: String,
output_lines: Vec<String>,
status: BashStatus,
expanded: bool,
},
Info(String),
Separator,
}Expand description
A rendered display message ready for output.
Variants§
User(String)
AssistantText(String)
Thinking
ToolCall
ToolResult
BashCommand
Bash command execution with styled rendering.
Info(String)
Separator
Separator between message groups
Trait Implementations§
Source§impl Clone for DisplayMsg
impl Clone for DisplayMsg
Source§fn clone(&self) -> DisplayMsg
fn clone(&self) -> DisplayMsg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DisplayMsg
impl RefUnwindSafe for DisplayMsg
impl Send for DisplayMsg
impl Sync for DisplayMsg
impl Unpin for DisplayMsg
impl UnsafeUnpin for DisplayMsg
impl UnwindSafe for DisplayMsg
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