pub struct MessageDeletion {
pub raw: Update,
pub state: State,
}Expand description
Occurs whenever a message is deleted.
When MessageDeletion#channel_id is Some, it means the message was deleted
from a channel.
Fields§
§raw: Update§state: StateImplementations§
Source§impl MessageDeletion
impl MessageDeletion
Sourcepub fn channel_id(&self) -> Option<i64>
pub fn channel_id(&self) -> Option<i64>
Returns the channel ID if the message was deleted from a channel.
Sourcepub fn into_messages(self) -> Vec<i32>
pub fn into_messages(self) -> Vec<i32>
Gain ownership of underlying Vec of message IDs that was deleted.
Trait Implementations§
Source§impl Clone for MessageDeletion
impl Clone for MessageDeletion
Source§fn clone(&self) -> MessageDeletion
fn clone(&self) -> MessageDeletion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MessageDeletion
impl RefUnwindSafe for MessageDeletion
impl Send for MessageDeletion
impl Sync for MessageDeletion
impl Unpin for MessageDeletion
impl UnwindSafe for MessageDeletion
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