Struct rust_tdlib::types::MessageLinkInfo
source · pub struct MessageLinkInfo { /* private fields */ }
Expand description
Contains information about a link to a message in a chat
Implementations§
source§impl MessageLinkInfo
impl MessageLinkInfo
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> MessageLinkInfoBuilder
pub fn is_public(&self) -> bool
pub fn chat_id(&self) -> i64
pub fn message(&self) -> &Option<Message>
pub fn media_timestamp(&self) -> i32
pub fn for_album(&self) -> bool
pub fn for_comment(&self) -> bool
Trait Implementations§
source§impl AsRef<MessageLinkInfo> for MessageLinkInfo
impl AsRef<MessageLinkInfo> for MessageLinkInfo
source§fn as_ref(&self) -> &MessageLinkInfo
fn as_ref(&self) -> &MessageLinkInfo
Converts this type into a shared reference of the (usually inferred) input type.
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 Default for MessageLinkInfo
impl Default for MessageLinkInfo
source§fn default() -> MessageLinkInfo
fn default() -> MessageLinkInfo
Returns the “default value” for a type. Read more
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