pub struct MessageKey {
pub chat_id: i64,
pub message_id: i64,
}Expand description
The chat and temporary message ID identifying a tracked send failure.
Message IDs are scoped to a chat, so both fields are required. Keys carried
by Error::MessageFailed or Error::MessageDeleted refer to the
temporary send identity, not a replacement successful final message ID.
Fields§
§chat_id: i64The chat containing the temporary message.
message_id: i64The temporary message ID assigned by TDLib.
Trait Implementations§
Source§impl Clone for MessageKey
impl Clone for MessageKey
Source§fn clone(&self) -> MessageKey
fn clone(&self) -> MessageKey
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 moreimpl Copy for MessageKey
Source§impl Debug for MessageKey
impl Debug for MessageKey
impl Eq for MessageKey
Source§impl Hash for MessageKey
impl Hash for MessageKey
Source§impl PartialEq for MessageKey
impl PartialEq for MessageKey
Source§fn eq(&self, other: &MessageKey) -> bool
fn eq(&self, other: &MessageKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MessageKey
Auto Trait Implementations§
impl Freeze for MessageKey
impl RefUnwindSafe for MessageKey
impl Send for MessageKey
impl Sync for MessageKey
impl Unpin for MessageKey
impl UnsafeUnpin for MessageKey
impl UnwindSafe for MessageKey
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