pub struct FlushReport {
pub rejected: Vec<RejectedDocument>,
}Expand description
The outcome of a flush: which buffered documents the
destination rejected at the item level.
This is distinct from a flush returning Err. An Err is a flush-wide
failure (transport down, the whole request refused) — nothing in the batch
is known durable, so the engine stops and the batch is redelivered. A
FlushReport instead means the flush succeeded and the destination applied
the batch, but rejected specific documents (a mapping conflict, a malformed
value) while accepting the rest. Those rejections are the document’s fault,
not the destination’s, so retrying redelivers the same poison — the engine
handles them per its failure policy (stop, or quarantine and continue)
instead of looping. An empty report means everything flushed cleanly.
Fields§
§rejected: Vec<RejectedDocument>Documents the destination accepted the batch but rejected individually.
Implementations§
Trait Implementations§
Source§impl Clone for FlushReport
impl Clone for FlushReport
Source§fn clone(&self) -> FlushReport
fn clone(&self) -> FlushReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more