pub struct CoreDisplayMessage {
pub role: DisplayRole,
pub content: String,
pub thinking: Option<String>,
}Expand description
A message converted to a frontend-friendly format.
Contains the essential display data extracted from LlmMessage.
Frontend implementations can wrap this with additional UI-specific
fields (collapse state, scroll position, etc.).
Fields§
§role: DisplayRole§content: String§thinking: Option<String>Trait Implementations§
Source§impl Clone for CoreDisplayMessage
impl Clone for CoreDisplayMessage
Source§fn clone(&self) -> CoreDisplayMessage
fn clone(&self) -> CoreDisplayMessage
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 moreAuto Trait Implementations§
impl Freeze for CoreDisplayMessage
impl RefUnwindSafe for CoreDisplayMessage
impl Send for CoreDisplayMessage
impl Sync for CoreDisplayMessage
impl Unpin for CoreDisplayMessage
impl UnsafeUnpin for CoreDisplayMessage
impl UnwindSafe for CoreDisplayMessage
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