pub struct DeadLetter {
pub original_message: Message,
pub reason: DeadLetterReason,
pub dead_lettered_at: DateTime<Utc>,
pub retry_count: u32,
}Expand description
A message that could not be delivered and was placed in the dead letter queue.
Fields§
§original_message: MessageThe original message that failed delivery.
reason: DeadLetterReasonWhy the message was dead-lettered.
dead_lettered_at: DateTime<Utc>When the message was dead-lettered.
retry_count: u32Number of delivery retries attempted.
Trait Implementations§
Source§impl Clone for DeadLetter
impl Clone for DeadLetter
Source§fn clone(&self) -> DeadLetter
fn clone(&self) -> DeadLetter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeadLetter
impl Debug for DeadLetter
Source§impl<'de> Deserialize<'de> for DeadLetter
impl<'de> Deserialize<'de> for DeadLetter
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
Auto Trait Implementations§
impl Freeze for DeadLetter
impl RefUnwindSafe for DeadLetter
impl Send for DeadLetter
impl Sync for DeadLetter
impl Unpin for DeadLetter
impl UnsafeUnpin for DeadLetter
impl UnwindSafe for DeadLetter
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