pub enum OnMissingKey {
Fail,
Process,
}Expand description
Policy for an exchange whose idempotency key is absent or empty.
Implements the spec requirement “Idempotent consumer step reservation
semantics” (openspec/changes/idemon/specs/eip-idempotency/spec.md): a
missing key is never silently forwarded, and an empty string counts as a
missing key on both the synchronous and asynchronous arms.
Variants§
Fail
Fail the exchange with an error naming the step and the repository; the child sub-pipeline does not run. This is the default.
Process
Log a warning and forward the exchange to the child sub-pipeline without repository interaction.
Implementations§
Trait Implementations§
Source§impl Clone for OnMissingKey
impl Clone for OnMissingKey
impl Copy for OnMissingKey
Source§impl Debug for OnMissingKey
impl Debug for OnMissingKey
Source§impl Default for OnMissingKey
impl Default for OnMissingKey
impl Eq for OnMissingKey
Source§impl PartialEq for OnMissingKey
impl PartialEq for OnMissingKey
impl StructuralPartialEq for OnMissingKey
Auto Trait Implementations§
impl Forget for OnMissingKey
impl Freeze for OnMissingKey
impl Move for OnMissingKey
impl RefUnwindSafe for OnMissingKey
impl Send for OnMissingKey
impl Sync for OnMissingKey
impl Unpin for OnMissingKey
impl UnsafeUnpin for OnMissingKey
impl UnwindSafe for OnMissingKey
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,
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.