pub enum OAuthErrorCode {
InvalidRequest,
InvalidClient,
InvalidGrant,
UnauthorizedClient,
UnsupportedGrantType,
InvalidScope,
AccessDenied,
UnsupportedResponseType,
ServerError,
TemporarilyUnavailable,
InvalidToken,
InsufficientScope,
}Expand description
The protocol vocabulary, re-exported so an application needs one import. The error codes defined by RFC 6749 §4.1.2.1 (authorisation endpoint) and §5.2 (token endpoint), plus the two RFC 6750 codes a resource server needs.
Variants§
InvalidRequest
InvalidClient
InvalidGrant
UnsupportedGrantType
InvalidScope
AccessDenied
UnsupportedResponseType
ServerError
InvalidToken
InsufficientScope
Implementations§
Source§impl OAuthErrorCode
impl OAuthErrorCode
pub fn parse(raw: &str) -> Option<OAuthErrorCode>
Trait Implementations§
Source§impl Clone for OAuthErrorCode
impl Clone for OAuthErrorCode
Source§fn clone(&self) -> OAuthErrorCode
fn clone(&self) -> OAuthErrorCode
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 OAuthErrorCode
Source§impl Debug for OAuthErrorCode
impl Debug for OAuthErrorCode
Source§impl Display for OAuthErrorCode
impl Display for OAuthErrorCode
impl Eq for OAuthErrorCode
Source§impl PartialEq for OAuthErrorCode
impl PartialEq for OAuthErrorCode
impl StructuralPartialEq for OAuthErrorCode
Auto Trait Implementations§
impl Freeze for OAuthErrorCode
impl RefUnwindSafe for OAuthErrorCode
impl Send for OAuthErrorCode
impl Sync for OAuthErrorCode
impl Unpin for OAuthErrorCode
impl UnsafeUnpin for OAuthErrorCode
impl UnwindSafe for OAuthErrorCode
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