pub struct DisplayMessage {
pub role: String,
pub content: String,
pub created_at: i64,
}Expand description
Display message format (simplified for TUI rendering)
Fields§
§role: StringRole of the sender
content: StringMessage content (rendered text)
created_at: i64Timestamp (Unix epoch ms)
Implementations§
Trait Implementations§
Source§impl Clone for DisplayMessage
impl Clone for DisplayMessage
Source§fn clone(&self) -> DisplayMessage
fn clone(&self) -> DisplayMessage
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 DisplayMessage
impl Debug for DisplayMessage
Source§impl<'de> Deserialize<'de> for DisplayMessage
impl<'de> Deserialize<'de> for DisplayMessage
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 DisplayMessage
impl RefUnwindSafe for DisplayMessage
impl Send for DisplayMessage
impl Sync for DisplayMessage
impl Unpin for DisplayMessage
impl UnsafeUnpin for DisplayMessage
impl UnwindSafe for DisplayMessage
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