Struct rust_tdlib::types::MessageForwardInfo
source · pub struct MessageForwardInfo { /* private fields */ }
Expand description
Contains information about a forwarded message
Implementations§
source§impl MessageForwardInfo
impl MessageForwardInfo
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> MessageForwardInfoBuilder
pub fn origin(&self) -> &MessageForwardOrigin
pub fn date(&self) -> i32
pub fn public_service_announcement_type(&self) -> &String
pub fn from_chat_id(&self) -> i64
pub fn from_message_id(&self) -> i64
Trait Implementations§
source§impl AsRef<MessageForwardInfo> for MessageForwardInfo
impl AsRef<MessageForwardInfo> for MessageForwardInfo
source§fn as_ref(&self) -> &MessageForwardInfo
fn as_ref(&self) -> &MessageForwardInfo
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for MessageForwardInfo
impl Clone for MessageForwardInfo
source§fn clone(&self) -> MessageForwardInfo
fn clone(&self) -> MessageForwardInfo
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 MessageForwardInfo
impl Debug for MessageForwardInfo
source§impl Default for MessageForwardInfo
impl Default for MessageForwardInfo
source§fn default() -> MessageForwardInfo
fn default() -> MessageForwardInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MessageForwardInfo
impl<'de> Deserialize<'de> for MessageForwardInfo
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