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
sourceimpl 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
sourceimpl AsRef<MessageLinkInfo> for MessageLinkInfo
impl AsRef<MessageLinkInfo> for MessageLinkInfo
sourcefn as_ref(&self) -> &MessageLinkInfo
fn as_ref(&self) -> &MessageLinkInfo
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for MessageLinkInfo
impl Clone for MessageLinkInfo
sourcefn clone(&self) -> MessageLinkInfo
fn clone(&self) -> MessageLinkInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MessageLinkInfo
impl Debug for MessageLinkInfo
sourceimpl Default for MessageLinkInfo
impl Default for MessageLinkInfo
sourcefn default() -> MessageLinkInfo
fn default() -> MessageLinkInfo
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for MessageLinkInfo
impl<'de> Deserialize<'de> for MessageLinkInfo
sourcefn 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
sourceimpl Serialize for MessageLinkInfo
impl Serialize for MessageLinkInfo
Auto Trait Implementations
impl RefUnwindSafe for MessageLinkInfo
impl Send for MessageLinkInfo
impl Sync for MessageLinkInfo
impl Unpin for MessageLinkInfo
impl UnwindSafe for MessageLinkInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more