#[non_exhaustive]pub enum InvalidIdempotencyKey {
Empty,
TooLong,
}Available on crate feature
unstable_protocol_v2 only.Expand description
Error returned when a string is not a valid IdempotencyKey.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
The key is an empty string.
TooLong
The key is longer than IdempotencyKey::MAX_LENGTH characters.
Trait Implementations§
Source§impl Clone for InvalidIdempotencyKey
impl Clone for InvalidIdempotencyKey
impl Copy for InvalidIdempotencyKey
Source§impl Debug for InvalidIdempotencyKey
impl Debug for InvalidIdempotencyKey
Source§impl Display for InvalidIdempotencyKey
impl Display for InvalidIdempotencyKey
impl Eq for InvalidIdempotencyKey
Source§impl Error for InvalidIdempotencyKey
impl Error for InvalidIdempotencyKey
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 PartialEq for InvalidIdempotencyKey
impl PartialEq for InvalidIdempotencyKey
impl StructuralPartialEq for InvalidIdempotencyKey
Auto Trait Implementations§
impl Forget for InvalidIdempotencyKey
impl Freeze for InvalidIdempotencyKey
impl Move for InvalidIdempotencyKey
impl RefUnwindSafe for InvalidIdempotencyKey
impl Send for InvalidIdempotencyKey
impl Sync for InvalidIdempotencyKey
impl Unpin for InvalidIdempotencyKey
impl UnsafeUnpin for InvalidIdempotencyKey
impl UnwindSafe for InvalidIdempotencyKey
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.