pub struct MessageLinkInfo {
pub is_public: bool,
pub chat_id: i64,
pub message_thread_id: i64,
pub message: Option<Message>,
pub media_timestamp: i32,
pub for_album: bool,
}
Expand description
Contains information about a link to a message or a forum topic in a chat
Fields§
§is_public: bool
True, if the link is a public link for a message or a forum topic in a chat
chat_id: i64
If found, identifier of the chat to which the link points, 0 otherwise
message_thread_id: i64
If found, identifier of the message thread in which to open the message, or a forum topic to open if the message is missing
message: Option<Message>
If found, the linked message; may be null
media_timestamp: i32
Timestamp from which the video/audio/video note/voice note/story playing must start, in seconds; 0 if not specified. The media can be in the message content or in its web page preview
for_album: bool
True, if the whole media album to which the message belongs is linked
Trait Implementations§
Source§impl Clone for MessageLinkInfo
impl Clone for MessageLinkInfo
Source§fn clone(&self) -> MessageLinkInfo
fn clone(&self) -> MessageLinkInfo
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 moreSource§impl Debug for MessageLinkInfo
impl Debug for MessageLinkInfo
Source§impl<'de> Deserialize<'de> for MessageLinkInfo
impl<'de> Deserialize<'de> for MessageLinkInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MessageLinkInfo
impl PartialEq for MessageLinkInfo
Source§impl Serialize for MessageLinkInfo
impl Serialize for MessageLinkInfo
impl StructuralPartialEq for MessageLinkInfo
Auto Trait Implementations§
impl Freeze for MessageLinkInfo
impl RefUnwindSafe for MessageLinkInfo
impl Send for MessageLinkInfo
impl Sync for MessageLinkInfo
impl Unpin for MessageLinkInfo
impl UnwindSafe for MessageLinkInfo
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