Struct rust_tdlib::types::ForwardMessages
source · pub struct ForwardMessages { /* private fields */ }
Expand description
Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can’t be forwarded, null will be returned instead of the message
Implementations§
source§impl ForwardMessages
impl ForwardMessages
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ForwardMessagesBuilder
pub fn chat_id(&self) -> i64
pub fn from_chat_id(&self) -> i64
pub fn message_ids(&self) -> &Vec<i64>
pub fn options(&self) -> &MessageSendOptions
pub fn send_copy(&self) -> bool
pub fn only_preview(&self) -> bool
Trait Implementations§
source§impl AsRef<ForwardMessages> for ForwardMessages
impl AsRef<ForwardMessages> for ForwardMessages
source§fn as_ref(&self) -> &ForwardMessages
fn as_ref(&self) -> &ForwardMessages
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ForwardMessages
impl Clone for ForwardMessages
source§fn clone(&self) -> ForwardMessages
fn clone(&self) -> ForwardMessages
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 ForwardMessages
impl Debug for ForwardMessages
source§impl Default for ForwardMessages
impl Default for ForwardMessages
source§fn default() -> ForwardMessages
fn default() -> ForwardMessages
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ForwardMessages
impl<'de> Deserialize<'de> for ForwardMessages
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