#[non_exhaustive]pub struct Refusal {
pub status: u16,
pub www_authenticate: Option<String>,
}Expand description
The HTTP refusal a TokenRejection calls for; see refusal.
#[non_exhaustive]: read its fields; more may be added without a breaking
change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: u16401 (missing or invalid credential) or 403 (a valid token without
the required scopes).
www_authenticate: Option<String>The WWW-Authenticate value to send, replacing any other. None only
when no OAuth validator is configured and the application opted out of
the static challenge (refusal_with_static_challenge with None).
Trait Implementations§
impl Eq for Refusal
impl StructuralPartialEq for Refusal
Auto Trait Implementations§
impl Freeze for Refusal
impl RefUnwindSafe for Refusal
impl Send for Refusal
impl Sync for Refusal
impl Unpin for Refusal
impl UnsafeUnpin for Refusal
impl UnwindSafe for Refusal
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