pub struct DeadLetterRecord {
pub schema: String,
pub receipt_id: String,
pub finalized_at: u64,
pub attempts: u32,
pub reason: SettlementFailureReason,
}Expand description
Permanent record persisted in the settle_dead_letters table.
Wire-stable: the canonical-JSON bytes of this struct are the row contents for offline review. The kernel observer slot constructs one of these on either a permanent outcome or an exhausted retry envelope.
Fields§
§schema: StringSchema tag (chio.settle.dead-letter.v1).
receipt_id: Stringid of the originating receipt.
finalized_at: u64Receipt finalization timestamp at the time of dead-lettering.
attempts: u32Number of attempts that ran before the failure was sealed in. Always at least one (the original call).
reason: SettlementFailureReasonBounded terminal failure reason.
Implementations§
Source§impl DeadLetterRecord
impl DeadLetterRecord
Sourcepub fn has_supported_schema(&self) -> bool
pub fn has_supported_schema(&self) -> bool
Return whether this record uses the schema understood by this build.
Trait Implementations§
Source§impl Clone for DeadLetterRecord
impl Clone for DeadLetterRecord
Source§fn clone(&self) -> DeadLetterRecord
fn clone(&self) -> DeadLetterRecord
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 DeadLetterRecord
impl Debug for DeadLetterRecord
Source§impl<'de> Deserialize<'de> for DeadLetterRecord
impl<'de> Deserialize<'de> for DeadLetterRecord
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 DeadLetterRecord
Source§impl PartialEq for DeadLetterRecord
impl PartialEq for DeadLetterRecord
Source§impl Serialize for DeadLetterRecord
impl Serialize for DeadLetterRecord
impl StructuralPartialEq for DeadLetterRecord
Auto Trait Implementations§
impl Freeze for DeadLetterRecord
impl RefUnwindSafe for DeadLetterRecord
impl Send for DeadLetterRecord
impl Sync for DeadLetterRecord
impl Unpin for DeadLetterRecord
impl UnsafeUnpin for DeadLetterRecord
impl UnwindSafe for DeadLetterRecord
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