pub struct DlqConfig {
pub sink: Arc<dyn Sink>,
pub on_batch_error: OnBatchError,
pub max_failures_per_page: Option<usize>,
pub max_failures_total: Option<usize>,
pub include_original_payload: bool,
}Expand description
Pipeline-level DLQ wiring.
Fields§
§sink: Arc<dyn Sink>Sink that receives DLQ envelopes.
on_batch_error: OnBatchErrorWhat to do when the main sink fails wholesale.
max_failures_per_page: Option<usize>Per-page failure budget. None = unlimited.
This budget is shared across both sink-side row failures and
quality-check quarantines: a record routed to the DLQ by a
quarantine quality check counts against it just as a sink-side
row failure does.
max_failures_total: Option<usize>Cumulative failure budget across the run. None = unlimited.
This budget is shared across both sink-side row failures and quality-check quarantines: records quarantined by the quality pass accumulate in this counter alongside sink-side failures.
include_original_payload: boolAlways true in v1. Reserved for a future “headers-only” mode.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DlqConfig
impl !RefUnwindSafe for DlqConfig
impl Send for DlqConfig
impl Sync for DlqConfig
impl Unpin for DlqConfig
impl UnsafeUnpin for DlqConfig
impl !UnwindSafe for DlqConfig
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