#[non_exhaustive]pub struct MessageUpdate {
pub index: usize,
pub id: MessageId,
pub change: MessageChangeKind,
pub message: Message,
}Available on crate feature
client only.Expand description
A message that changed, and the message as it now stands.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: usizeIndex into Thread::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§impl Debug for MessageUpdate
impl Debug for MessageUpdate
Source§impl PartialEq for MessageUpdate
impl PartialEq for MessageUpdate
impl StructuralPartialEq for MessageUpdate
Auto Trait Implementations§
impl Forget for MessageUpdate
impl Freeze for MessageUpdate
impl Move 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