Enum oauth2_client::extensions::AccessTokenResponseErrorBodyError [−][src]
pub enum AccessTokenResponseErrorBodyError {
Show 14 variants
InvalidRequest,
InvalidClient,
InvalidGrant,
UnauthorizedClient,
UnsupportedGrantType,
InvalidScope,
UnsupportedResponseType,
AuthorizationPending,
SlowDown,
ExpiredToken,
AccessDenied,
ServerError,
TemporarilyUnavailable,
Other(String),
}
Variants
InvalidRequest
https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
InvalidClient
https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
InvalidGrant
https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
UnauthorizedClient
https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
UnsupportedGrantType
https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
InvalidScope
https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
UnsupportedResponseType
https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2.1
AuthorizationPending
https://datatracker.ietf.org/doc/html/rfc8628#section-3.5
SlowDown
https://datatracker.ietf.org/doc/html/rfc8628#section-3.5
ExpiredToken
https://datatracker.ietf.org/doc/html/rfc8628#section-3.5
AccessDenied
https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2.1 https://datatracker.ietf.org/doc/html/rfc6749#section-4.2.2.1 https://datatracker.ietf.org/doc/html/rfc8628#section-3.5
ServerError
https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2.1 https://datatracker.ietf.org/doc/html/rfc6749#section-4.2.2.1
TemporarilyUnavailable
https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2.1 https://datatracker.ietf.org/doc/html/rfc6749#section-4.2.2.1
Other(String)
Tuple Fields
0: String
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<D>(
deserializer: D
) -> Result<ErrorBodyError, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<ErrorBodyError, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for ErrorBodyError
impl Send for ErrorBodyError
impl Sync for ErrorBodyError
impl Unpin for ErrorBodyError
impl UnwindSafe for ErrorBodyError
Blanket Implementations
Mutably borrows from an owned value. Read more