pub struct ContextMessage {
pub id: Uuid,
pub role: MessageRole,
pub content: String,
pub index: i32,
pub is_match: bool,
}Expand description
A simplified message representation for context display.
Fields§
§id: UuidMessage ID.
role: MessageRoleRole of the sender.
content: StringText content (truncated for display).
index: i32Message index in the session.
is_match: boolWhether this is the matching message.
Trait Implementations§
Source§impl Clone for ContextMessage
impl Clone for ContextMessage
Source§fn clone(&self) -> ContextMessage
fn clone(&self) -> ContextMessage
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 ContextMessage
impl Debug for ContextMessage
Source§impl<'de> Deserialize<'de> for ContextMessage
impl<'de> Deserialize<'de> for ContextMessage
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 ContextMessage
impl RefUnwindSafe for ContextMessage
impl Send for ContextMessage
impl Sync for ContextMessage
impl Unpin for ContextMessage
impl UnwindSafe for ContextMessage
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