pub struct RemoveMessage {
pub id: String,
}Expand description
Marker that requests deletion of a specific message from a conversation
history. Tagged with the target message’s ID so reducers (e.g.
merge_message_history) can locate and drop it.
Fields§
§id: StringStable ID of the message to remove. Use Some("__all__") to clear
the entire history.
Implementations§
Trait Implementations§
Source§impl Clone for RemoveMessage
impl Clone for RemoveMessage
Source§fn clone(&self) -> RemoveMessage
fn clone(&self) -> RemoveMessage
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 RemoveMessage
impl Debug for RemoveMessage
Source§impl<'de> Deserialize<'de> for RemoveMessage
impl<'de> Deserialize<'de> for RemoveMessage
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
Source§impl Hash for RemoveMessage
impl Hash for RemoveMessage
Source§impl PartialEq for RemoveMessage
impl PartialEq for RemoveMessage
Source§fn eq(&self, other: &RemoveMessage) -> bool
fn eq(&self, other: &RemoveMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RemoveMessage
impl Serialize for RemoveMessage
impl Eq for RemoveMessage
impl StructuralPartialEq for RemoveMessage
Auto Trait Implementations§
impl Freeze for RemoveMessage
impl RefUnwindSafe for RemoveMessage
impl Send for RemoveMessage
impl Sync for RemoveMessage
impl Unpin for RemoveMessage
impl UnsafeUnpin for RemoveMessage
impl UnwindSafe for RemoveMessage
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