Struct rust_tdlib::types::AddLocalMessage  
source · [−]pub struct AddLocalMessage { /* private fields */ }Expand description
Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message
Implementations
sourceimpl AddLocalMessage
 
impl AddLocalMessage
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> AddLocalMessageBuilder
pub fn chat_id(&self) -> i64
pub fn sender_id(&self) -> &MessageSender
pub fn reply_to_message_id(&self) -> i64
pub fn disable_notification(&self) -> bool
pub fn input_message_content(&self) -> &InputMessageContent
Trait Implementations
sourceimpl AsRef<AddLocalMessage> for AddLocalMessage
 
impl AsRef<AddLocalMessage> for AddLocalMessage
sourcefn as_ref(&self) -> &AddLocalMessage
 
fn as_ref(&self) -> &AddLocalMessage
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for AddLocalMessage
 
impl Clone for AddLocalMessage
sourcefn clone(&self) -> AddLocalMessage
 
fn clone(&self) -> AddLocalMessage
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 AddLocalMessage
 
impl Debug for AddLocalMessage
sourceimpl Default for AddLocalMessage
 
impl Default for AddLocalMessage
sourcefn default() -> AddLocalMessage
 
fn default() -> AddLocalMessage
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AddLocalMessage
 
impl<'de> Deserialize<'de> for AddLocalMessage
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 AddLocalMessage
 
impl Serialize for AddLocalMessage
Auto Trait Implementations
impl RefUnwindSafe for AddLocalMessage
impl Send for AddLocalMessage
impl Sync for AddLocalMessage
impl Unpin for AddLocalMessage
impl UnwindSafe for AddLocalMessage
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