Enum oxide_auth::code_grant::accesstoken::Error [−][src]
pub enum Error {
Invalid(ErrorDescription),
Unauthorized(ErrorDescription, String),
Primitive(Box<PrimitiveError>),
}Expand description
Defines actions for the response to an access token request.
Variants
Invalid(ErrorDescription)The token did not represent a valid token.
Tuple Fields of Invalid
The client did not properly authorize itself.
Tuple Fields of Unauthorized
Primitive(Box<PrimitiveError>)An underlying primitive operation did not complete successfully.
This is expected to occur with some endpoints. See PrimitiveError for
more details on when this is returned.
Tuple Fields of Primitive
0: Box<PrimitiveError>Implementations
Create unauthorized error type
Get a handle to the description the client will receive.
Some types of this error don’t return any description which is represented by a None
result.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more