pub struct IdempotencyKey(/* private fields */);Expand description
UUID used as an idempotency key.
Eternaltwin requires the use of UUIDv7 for idempotency.
For REST requests, it should be passed through the Idempotency-Key header
See https://datatracker.ietf.org/doc/draft-ietf-httpapi-idempotency-key-header/
Implementations§
Trait Implementations§
Source§impl Clone for IdempotencyKey
impl Clone for IdempotencyKey
Source§fn clone(&self) -> IdempotencyKey
fn clone(&self) -> IdempotencyKey
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 IdempotencyKey
impl Debug for IdempotencyKey
Source§impl Display for IdempotencyKey
impl Display for IdempotencyKey
Source§impl From<Uuid> for IdempotencyKey
impl From<Uuid> for IdempotencyKey
Source§impl FromStr for IdempotencyKey
impl FromStr for IdempotencyKey
Source§impl Hash for IdempotencyKey
impl Hash for IdempotencyKey
Source§impl Ord for IdempotencyKey
impl Ord for IdempotencyKey
Source§fn cmp(&self, other: &IdempotencyKey) -> Ordering
fn cmp(&self, other: &IdempotencyKey) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IdempotencyKey
impl PartialEq for IdempotencyKey
Source§impl PartialOrd for IdempotencyKey
impl PartialOrd for IdempotencyKey
Source§impl TryFrom<&str> for IdempotencyKey
impl TryFrom<&str> for IdempotencyKey
impl Copy for IdempotencyKey
impl Eq for IdempotencyKey
impl StructuralPartialEq for IdempotencyKey
Auto Trait Implementations§
impl Freeze for IdempotencyKey
impl RefUnwindSafe for IdempotencyKey
impl Send for IdempotencyKey
impl Sync for IdempotencyKey
impl Unpin for IdempotencyKey
impl UnwindSafe for IdempotencyKey
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