Struct grammers_client::types::message_deletion::MessageDeletion
source · pub struct MessageDeletion { /* private fields */ }
Expand description
Occurs whenever a message is deleted. Note that this event isn’t 100% reliable, since Telegram doesn’t always notify the clients that a message was deleted.
When MessageDeletion#channel_id
is Some, it means the message was deleted
from a channel.
Implementations§
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 copy 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