pub enum Error {
AccessDenied {
failure: AccessFailure,
authenticate: Authenticate,
},
NoAuthentication {
authenticate: Authenticate,
},
InvalidRequest {
authenticate: Authenticate,
},
PrimitiveError,
}Expand description
An error signalling the resource access was not permitted.
Variants§
AccessDenied
The client tried to access a resource but was not able to.
Fields
§
failure: AccessFailureA specific cause for denying access.
§
authenticate: AuthenticateInformation for the Authenticate header in the error response.
NoAuthentication
The client did not provide any bearer authentication.
Fields
§
authenticate: AuthenticateInformation for the Authenticate header in the error response.
InvalidRequest
The request itself was malformed.
Fields
§
authenticate: AuthenticateInformation for the Authenticate header in the error response.
PrimitiveError
Some part of the endpoint failed, defer to endpoint for handling.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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