pub struct QueueDeadLetter {
pub queue: ResourceRef,
pub max_attempts: u32,
}Expand description
Where a Queue moves messages that keep failing.
The target is a normal Queue in the same stack with the same lifecycle. The attempt count is approximate: it is the cloud’s own delivery count (SQS counts every receive, Pub/Sub is best-effort). The payload is preserved; there is no portable failure reason.
Fields§
§queue: ResourceRefThe Queue that receives the messages. Must be a Queue in the stack with the same lifecycle, must not be this Queue and must not have a dead-letter setting itself.
max_attempts: u32Deliveries after which the message moves (5 to 100, default 5).
Implementations§
Source§impl QueueDeadLetter
impl QueueDeadLetter
Sourcepub fn builder() -> QueueDeadLetterBuilder
pub fn builder() -> QueueDeadLetterBuilder
Create an instance of QueueDeadLetter using the builder syntax
Trait Implementations§
Source§impl Clone for QueueDeadLetter
impl Clone for QueueDeadLetter
Source§impl Debug for QueueDeadLetter
impl Debug for QueueDeadLetter
Source§impl<'de> Deserialize<'de> for QueueDeadLetter
impl<'de> Deserialize<'de> for QueueDeadLetter
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 Eq for QueueDeadLetter
Source§impl PartialEq for QueueDeadLetter
impl PartialEq for QueueDeadLetter
Source§impl Serialize for QueueDeadLetter
impl Serialize for QueueDeadLetter
impl StructuralPartialEq for QueueDeadLetter
Auto Trait Implementations§
impl Forget for QueueDeadLetter
impl Freeze for QueueDeadLetter
impl Move for QueueDeadLetter
impl RefUnwindSafe for QueueDeadLetter
impl Send for QueueDeadLetter
impl Sync for QueueDeadLetter
impl Unpin for QueueDeadLetter
impl UnsafeUnpin for QueueDeadLetter
impl UnwindSafe for QueueDeadLetter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.