pub enum ApiKeyVerifyError {
Malformed,
NotFound,
BadSecret,
Expired,
}Expand description
Verification result — carries the matched key so the caller can inspect scopes / expiry without a second backend round-trip.
Variants§
Malformed
Token format is wrong (no pk_ prefix or wrong length).
NotFound
Token format is OK but the embedded id isn’t in the store.
BadSecret
Token + id matched a stored key but the secret didn’t verify.
Expired
expires_at has passed.
Trait Implementations§
Source§impl Clone for ApiKeyVerifyError
impl Clone for ApiKeyVerifyError
Source§fn clone(&self) -> ApiKeyVerifyError
fn clone(&self) -> ApiKeyVerifyError
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 ApiKeyVerifyError
impl Debug for ApiKeyVerifyError
Auto Trait Implementations§
impl Freeze for ApiKeyVerifyError
impl RefUnwindSafe for ApiKeyVerifyError
impl Send for ApiKeyVerifyError
impl Sync for ApiKeyVerifyError
impl Unpin for ApiKeyVerifyError
impl UnsafeUnpin for ApiKeyVerifyError
impl UnwindSafe for ApiKeyVerifyError
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