pub enum IdempotencyError {
Required,
Invalid(InvalidIdempotencyKey),
Reused,
InProgress,
}Expand description
A keyed mutation that cannot run or replay.
Converts into ApiError as 400 idempotency_key_required, 400 invalid_idempotency_key,
409 idempotency_key_reused, or 409 idempotency_key_in_progress.
Variants§
Required
A route that requires Idempotency-Key received none.
Invalid(InvalidIdempotencyKey)
The Idempotency-Key value is outside the route’s grammar.
Reused
The key was used in the same scope with a different request fingerprint.
InProgress
The first request with this key has not finished, and the product chose not to wait.
Implementations§
Trait Implementations§
Source§impl Clone for IdempotencyError
impl Clone for IdempotencyError
impl Copy for IdempotencyError
Source§impl Debug for IdempotencyError
impl Debug for IdempotencyError
Source§impl Display for IdempotencyError
impl Display for IdempotencyError
impl Eq for IdempotencyError
Source§impl Error for IdempotencyError
impl Error for IdempotencyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<IdempotencyError> for ApiError
impl From<IdempotencyError> for ApiError
Source§fn from(error: IdempotencyError) -> Self
fn from(error: IdempotencyError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidIdempotencyKey> for IdempotencyError
impl From<InvalidIdempotencyKey> for IdempotencyError
Source§fn from(error: InvalidIdempotencyKey) -> Self
fn from(error: InvalidIdempotencyKey) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IdempotencyError
impl PartialEq for IdempotencyError
impl StructuralPartialEq for IdempotencyError
Auto Trait Implementations§
impl Freeze for IdempotencyError
impl RefUnwindSafe for IdempotencyError
impl Send for IdempotencyError
impl Sync for IdempotencyError
impl Unpin for IdempotencyError
impl UnsafeUnpin for IdempotencyError
impl UnwindSafe for IdempotencyError
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
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§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.