pub struct OAuthHttpError { /* private fields */ }Implementations§
Source§impl OAuthHttpError
impl OAuthHttpError
pub fn new(code: OAuthErrorCode, description: impl Into<String>) -> Self
pub fn invalid_request(description: impl Into<String>) -> Self
pub fn invalid_client(description: impl Into<String>) -> Self
pub fn invalid_grant(description: impl Into<String>) -> Self
pub fn unsupported_grant_type(description: impl Into<String>) -> Self
pub fn invalid_scope(description: impl Into<String>) -> Self
pub fn invalid_token(description: impl Into<String>) -> Self
pub fn access_denied(description: impl Into<String>) -> Self
pub fn server_error(description: impl Into<String>) -> Self
pub fn invalid_client_metadata(description: impl Into<String>) -> Self
pub fn authentication_failed(description: impl Into<String>) -> Self
pub fn registration_failed(description: impl Into<String>) -> Self
pub fn email_exists(description: impl Into<String>) -> Self
pub fn expired_challenge(description: impl Into<String>) -> Self
pub fn invalid_credential(description: impl Into<String>) -> Self
pub fn link_failed(description: impl Into<String>) -> Self
pub fn invalid_target(description: impl Into<String>) -> Self
pub fn not_found(description: impl Into<String>) -> Self
pub const fn with_status(self, status: StatusCode) -> Self
pub fn with_redirect( self, uri: impl Into<String>, state: Option<String>, ) -> Self
pub const fn code(&self) -> OAuthErrorCode
pub fn description(&self) -> &str
Trait Implementations§
Source§impl Debug for OAuthHttpError
impl Debug for OAuthHttpError
Source§impl From<AuthProviderError> for OAuthHttpError
impl From<AuthProviderError> for OAuthHttpError
Source§fn from(err: AuthProviderError) -> Self
fn from(err: AuthProviderError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for OAuthHttpError
impl From<Error> for OAuthHttpError
Source§impl From<Error> for OAuthHttpError
impl From<Error> for OAuthHttpError
Source§impl From<OauthError> for OAuthHttpError
impl From<OauthError> for OAuthHttpError
Source§fn from(err: OauthError) -> Self
fn from(err: OauthError) -> Self
Converts to this type from the input type.
Source§impl From<SecretsBootstrapError> for OAuthHttpError
impl From<SecretsBootstrapError> for OAuthHttpError
Source§fn from(err: SecretsBootstrapError) -> Self
fn from(err: SecretsBootstrapError) -> Self
Converts to this type from the input type.
Source§impl From<TokenError> for OAuthHttpError
impl From<TokenError> for OAuthHttpError
Source§fn from(error: TokenError) -> Self
fn from(error: TokenError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for OAuthHttpError
impl IntoResponse for OAuthHttpError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for OAuthHttpError
impl RefUnwindSafe for OAuthHttpError
impl Send for OAuthHttpError
impl Sync for OAuthHttpError
impl Unpin for OAuthHttpError
impl UnsafeUnpin for OAuthHttpError
impl UnwindSafe for OAuthHttpError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more