pub enum ComposeIntent<'a> {
Text {
body: &'a str,
status: bool,
},
Reply {
body: &'a str,
regarding: RegardingRef,
status: bool,
},
Edit {
original: ComposeRef,
body: &'a str,
},
Delete {
original: ComposeRef,
},
}Expand description
What the caller wants to send.
Variants§
Text
Plain text (status renders like IRC /me).
Reply
Reply to (status: false) or emote about (status: true) a message.
An emote with an empty body withdraws the sender’s earlier reaction.
Edit
Replace a previously composed message’s content.
Delete
Delete a previously composed message (empty edit on the wire).
Fields
§
original: ComposeRefTrait Implementations§
Source§impl<'a> Clone for ComposeIntent<'a>
impl<'a> Clone for ComposeIntent<'a>
Source§fn clone(&self) -> ComposeIntent<'a>
fn clone(&self) -> ComposeIntent<'a>
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<'a> Debug for ComposeIntent<'a>
impl<'a> Debug for ComposeIntent<'a>
impl<'a> Copy for ComposeIntent<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComposeIntent<'a>
impl<'a> RefUnwindSafe for ComposeIntent<'a>
impl<'a> Send for ComposeIntent<'a>
impl<'a> Sync for ComposeIntent<'a>
impl<'a> Unpin for ComposeIntent<'a>
impl<'a> UnwindSafe for ComposeIntent<'a>
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)