Struct rust_tdlib::types::MessageSendingStateFailed
source · pub struct MessageSendingStateFailed { /* private fields */ }
Expand description
The message failed to be sent
Implementations§
source§impl MessageSendingStateFailed
impl MessageSendingStateFailed
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> MessageSendingStateFailedBuilder
pub fn error_code(&self) -> i32
pub fn error_message(&self) -> &String
pub fn can_retry(&self) -> bool
pub fn need_another_sender(&self) -> bool
pub fn retry_after(&self) -> f32
Trait Implementations§
source§impl AsRef<MessageSendingStateFailed> for MessageSendingStateFailed
impl AsRef<MessageSendingStateFailed> for MessageSendingStateFailed
source§fn as_ref(&self) -> &MessageSendingStateFailed
fn as_ref(&self) -> &MessageSendingStateFailed
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for MessageSendingStateFailed
impl Clone for MessageSendingStateFailed
source§fn clone(&self) -> MessageSendingStateFailed
fn clone(&self) -> MessageSendingStateFailed
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 MessageSendingStateFailed
impl Debug for MessageSendingStateFailed
source§impl Default for MessageSendingStateFailed
impl Default for MessageSendingStateFailed
source§fn default() -> MessageSendingStateFailed
fn default() -> MessageSendingStateFailed
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MessageSendingStateFailed
impl<'de> Deserialize<'de> for MessageSendingStateFailed
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