pub struct OAuthProviderError {
pub status: StatusCode,
pub error: String,
pub error_description: String,
}Expand description
OAuth provider runtime error.
Fields§
§status: StatusCode§error: String§error_description: StringImplementations§
Source§impl OAuthProviderError
impl OAuthProviderError
pub fn new( status: StatusCode, error: impl Into<String>, error_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_scope(description: impl Into<String>) -> Self
pub fn access_denied(description: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for OAuthProviderError
impl Clone for OAuthProviderError
Source§fn clone(&self) -> OAuthProviderError
fn clone(&self) -> OAuthProviderError
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 moreSource§impl Debug for OAuthProviderError
impl Debug for OAuthProviderError
Source§impl Display for OAuthProviderError
impl Display for OAuthProviderError
Source§impl Error for OAuthProviderError
impl Error for OAuthProviderError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<OAuthProviderError> for RustAuthError
impl From<OAuthProviderError> for RustAuthError
Source§fn from(error: OAuthProviderError) -> Self
fn from(error: OAuthProviderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OAuthProviderError
impl RefUnwindSafe for OAuthProviderError
impl Send for OAuthProviderError
impl Sync for OAuthProviderError
impl Unpin for OAuthProviderError
impl UnsafeUnpin for OAuthProviderError
impl UnwindSafe for OAuthProviderError
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