pub struct MessageUpdate {
pub index: usize,
pub id: MessageId,
pub change: MessageChangeKind,
pub message: Message,
}Expand description
A message that changed, and the message as it now stands.
Fields§
§index: usizeIndex into Session::messages.
id: MessageIdThe message’s id.
change: MessageChangeKindWhat this event did to it — the text delta, the tool call, the close.
message: MessageThe whole message, assembled so far.
Trait Implementations§
Source§impl Clone for MessageUpdate
impl Clone for MessageUpdate
Source§fn clone(&self) -> MessageUpdate
fn clone(&self) -> MessageUpdate
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 moreSource§impl Debug for MessageUpdate
impl Debug for MessageUpdate
Source§impl PartialEq for MessageUpdate
impl PartialEq for MessageUpdate
Source§fn eq(&self, other: &MessageUpdate) -> bool
fn eq(&self, other: &MessageUpdate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MessageUpdate
Auto Trait Implementations§
impl Freeze for MessageUpdate
impl RefUnwindSafe for MessageUpdate
impl Send for MessageUpdate
impl Sync for MessageUpdate
impl Unpin for MessageUpdate
impl UnsafeUnpin for MessageUpdate
impl UnwindSafe for MessageUpdate
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