pub struct IdempotentConsumerStepDef {
pub repository: String,
pub expression: LanguageExpressionDef,
pub steps: Vec<DeclarativeStep>,
pub eager: Option<bool>,
pub remove_on_failure: Option<bool>,
}Expand description
Idempotent Consumer EIP step definition.
Wraps a child sub-pipeline that runs only when the exchange’s message-id
is NOT already present in the named repository. See ADR-0023.
Fields§
§repository: StringName of the registered IdempotentRepository (e.g. "memory").
expression: LanguageExpressionDefExpression that extracts the message-id key from the exchange.
steps: Vec<DeclarativeStep>Child sub-pipeline executed on first-time (non-duplicate) exchanges.
eager: Option<bool>If true, reserve the key in the repository BEFORE running the child
(eager mode). Default false (lazy: add only after the child completes).
remove_on_failure: Option<bool>If true and eager is true, remove the key from the repository
when the child returns Failed. Default false.
Trait Implementations§
Source§impl Clone for IdempotentConsumerStepDef
impl Clone for IdempotentConsumerStepDef
Source§fn clone(&self) -> IdempotentConsumerStepDef
fn clone(&self) -> IdempotentConsumerStepDef
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 IdempotentConsumerStepDef
impl Debug for IdempotentConsumerStepDef
impl StructuralPartialEq for IdempotentConsumerStepDef
Auto Trait Implementations§
impl Freeze for IdempotentConsumerStepDef
impl RefUnwindSafe for IdempotentConsumerStepDef
impl Send for IdempotentConsumerStepDef
impl Sync for IdempotentConsumerStepDef
impl Unpin for IdempotentConsumerStepDef
impl UnsafeUnpin for IdempotentConsumerStepDef
impl UnwindSafe for IdempotentConsumerStepDef
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