pub struct MessageSendingStateFailed {
pub error: Error,
pub can_retry: bool,
pub need_another_sender: bool,
pub need_another_reply_quote: bool,
pub need_drop_reply: bool,
pub retry_after: f64,
}
Expand description
The message failed to be sent
Fields§
§error: Error
The cause of the message sending failure
can_retry: bool
True, if the message can be re-sent
need_another_sender: bool
True, if the message can be re-sent only on behalf of a different sender
need_another_reply_quote: bool
True, if the message can be re-sent only if another quote is chosen in the message that is replied by the given message
need_drop_reply: bool
True, if the message can be re-sent only if the message to be replied is removed. This will be done automatically by resendMessages
retry_after: f64
Time left before the message can be re-sent, in seconds. No update is sent when this field changes
Trait Implementations§
Source§impl Clone for MessageSendingStateFailed
impl Clone for MessageSendingStateFailed
Source§fn clone(&self) -> MessageSendingStateFailed
fn clone(&self) -> MessageSendingStateFailed
Returns a duplicate 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
impl StructuralPartialEq for MessageSendingStateFailed
Auto Trait Implementations§
impl Freeze for MessageSendingStateFailed
impl RefUnwindSafe for MessageSendingStateFailed
impl Send for MessageSendingStateFailed
impl Sync for MessageSendingStateFailed
impl Unpin for MessageSendingStateFailed
impl UnwindSafe for MessageSendingStateFailed
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more