pub enum MutationKind {
Insert {Show 16 fields
conversation: ConversationKey,
sender: SenderScope,
direction: Direction,
message_type: MessageType,
wire_id: Option<u8>,
epoch: u16,
client_token: Option<u32>,
sender_handle: Option<BodyRef>,
regarding: Option<ResolvedRef>,
bg_color: Option<[u8; 3]>,
text_color: Option<[u8; 3]>,
body: BodyRef,
status: CompletionStatus,
presence: Presence,
late: bool,
notify: bool,
},
UpdateBody {
body: BodyRef,
status: CompletionStatus,
late: bool,
notify: bool,
},
Edit {
conversation: ConversationKey,
original: ResolvedRef,
body: BodyRef,
},
Delete {
conversation: ConversationKey,
original: ResolvedRef,
},
}Variants§
Insert
Create a transcript record.
Fields
§
conversation: ConversationKey§
sender: SenderScope§
message_type: MessageType§
regarding: Option<ResolvedRef>§
status: CompletionStatusUpdateBody
Replace the rendered body (reassembly progress or finalization).
Edit
Apply an edit to the referenced original message.
Delete
Mark the referenced original message deleted (empty edit).
Trait Implementations§
Source§impl Clone for MutationKind
impl Clone for MutationKind
Source§fn clone(&self) -> MutationKind
fn clone(&self) -> MutationKind
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MutationKind
impl Debug for MutationKind
impl Copy for MutationKind
Auto Trait Implementations§
impl Freeze for MutationKind
impl RefUnwindSafe for MutationKind
impl Send for MutationKind
impl Sync for MutationKind
impl Unpin for MutationKind
impl UnwindSafe for MutationKind
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)