#[non_exhaustive]pub enum BearerChallenge {
Required,
InvalidRequest,
InvalidToken,
InsufficientScope,
}Expand description
Standard bearer challenges for protected API operations.
Applications that need additional RFC 6750 parameters such as realm or
scope can use ApiResponseMetadata::www_authenticate with a validated
HeaderValue.
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.
Implementations§
Trait Implementations§
Source§impl Clone for BearerChallenge
impl Clone for BearerChallenge
Source§fn clone(&self) -> BearerChallenge
fn clone(&self) -> BearerChallenge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BearerChallenge
Source§impl Debug for BearerChallenge
impl Debug for BearerChallenge
impl Eq for BearerChallenge
Source§impl PartialEq for BearerChallenge
impl PartialEq for BearerChallenge
impl StructuralPartialEq for BearerChallenge
Auto Trait Implementations§
impl Freeze for BearerChallenge
impl RefUnwindSafe for BearerChallenge
impl Send for BearerChallenge
impl Sync for BearerChallenge
impl Unpin for BearerChallenge
impl UnsafeUnpin for BearerChallenge
impl UnwindSafe for BearerChallenge
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