pub enum IdempotencyResult {
New,
Duplicate {
original_event_id: Uuid,
},
}Expand description
Result of an idempotency check
Variants§
New
Key is new, proceed with processing
Duplicate
Key was already processed, return the original event_id
Trait Implementations§
Source§impl Clone for IdempotencyResult
impl Clone for IdempotencyResult
Source§fn clone(&self) -> IdempotencyResult
fn clone(&self) -> IdempotencyResult
Returns a duplicate of the value. Read more
1.0.0 · 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 IdempotencyResult
impl Debug for IdempotencyResult
Auto Trait Implementations§
impl Freeze for IdempotencyResult
impl RefUnwindSafe for IdempotencyResult
impl Send for IdempotencyResult
impl Sync for IdempotencyResult
impl Unpin for IdempotencyResult
impl UnsafeUnpin for IdempotencyResult
impl UnwindSafe for IdempotencyResult
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