pub enum ApiKeyErrorCode {
Show 21 variants
InvalidApiKey,
KeyDisabled,
KeyExpired,
UsageExceeded,
KeyNotFound,
RateLimited,
UnauthorizedSession,
InvalidPrefixLength,
InvalidNameLength,
MetadataDisabled,
NoValuesToUpdate,
KeyDisabledExpiration,
ExpiresInTooSmall,
ExpiresInTooLarge,
InvalidRemaining,
RefillAmountAndIntervalRequired,
NameRequired,
InvalidUserIdFromApiKey,
ServerOnlyProperty,
FailedToUpdateApiKey,
InvalidMetadataType,
}Expand description
Dedicated API Key error codes aligned with the TypeScript implementation.
Variants§
InvalidApiKey
KeyDisabled
KeyExpired
UsageExceeded
KeyNotFound
RateLimited
InvalidPrefixLength
InvalidNameLength
MetadataDisabled
NoValuesToUpdate
KeyDisabledExpiration
ExpiresInTooSmall
ExpiresInTooLarge
InvalidRemaining
RefillAmountAndIntervalRequired
NameRequired
InvalidUserIdFromApiKey
ServerOnlyProperty
FailedToUpdateApiKey
InvalidMetadataType
Implementations§
Trait Implementations§
Source§impl Clone for ApiKeyErrorCode
impl Clone for ApiKeyErrorCode
Source§fn clone(&self) -> ApiKeyErrorCode
fn clone(&self) -> ApiKeyErrorCode
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 ApiKeyErrorCode
impl Debug for ApiKeyErrorCode
Source§impl PartialEq for ApiKeyErrorCode
impl PartialEq for ApiKeyErrorCode
Source§impl Serialize for ApiKeyErrorCode
impl Serialize for ApiKeyErrorCode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ApiKeyErrorCode
impl Eq for ApiKeyErrorCode
impl StructuralPartialEq for ApiKeyErrorCode
Auto Trait Implementations§
impl Freeze for ApiKeyErrorCode
impl RefUnwindSafe for ApiKeyErrorCode
impl Send for ApiKeyErrorCode
impl Sync for ApiKeyErrorCode
impl Unpin for ApiKeyErrorCode
impl UnsafeUnpin for ApiKeyErrorCode
impl UnwindSafe for ApiKeyErrorCode
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.