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
sourceimpl 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 remove_caption(&self) -> bool
pub fn only_preview(&self) -> bool
Trait Implementations
sourceimpl AsRef<ForwardMessages> for ForwardMessages
 
impl AsRef<ForwardMessages> for ForwardMessages
sourcefn as_ref(&self) -> &ForwardMessages
 
fn as_ref(&self) -> &ForwardMessages
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ForwardMessages
 
impl Clone for ForwardMessages
sourcefn clone(&self) -> ForwardMessages
 
fn clone(&self) -> ForwardMessages
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 ForwardMessages
 
impl Debug for ForwardMessages
sourceimpl Default for ForwardMessages
 
impl Default for ForwardMessages
sourcefn default() -> ForwardMessages
 
fn default() -> ForwardMessages
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ForwardMessages
 
impl<'de> Deserialize<'de> for ForwardMessages
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 ForwardMessages
 
impl Serialize for ForwardMessages
Auto Trait Implementations
impl RefUnwindSafe for ForwardMessages
impl Send for ForwardMessages
impl Sync for ForwardMessages
impl Unpin for ForwardMessages
impl UnwindSafe for ForwardMessages
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