pub struct IdempotencyToken(pub String);Expand description
Deduplication token attached to an Event.
Produced by the configured
IdempotencyStrategy and, when an
IdempotencyStorageProvider
is wired, used to reserve uniqueness before the event is written.
Accepts arbitrary strings — interpretation is left entirely to the caller.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for IdempotencyToken
impl Clone for IdempotencyToken
Source§fn clone(&self) -> IdempotencyToken
fn clone(&self) -> IdempotencyToken
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 moreAuto Trait Implementations§
impl Freeze for IdempotencyToken
impl RefUnwindSafe for IdempotencyToken
impl Send for IdempotencyToken
impl Sync for IdempotencyToken
impl Unpin for IdempotencyToken
impl UnsafeUnpin for IdempotencyToken
impl UnwindSafe for IdempotencyToken
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