Struct openid::error::OAuth2Error
source · pub struct OAuth2Error {
pub error: OAuth2ErrorCode,
pub error_description: Option<String>,
pub error_uri: Option<String>,
}
Expand description
OAuth 2.0 error.
Fields§
§error: OAuth2ErrorCode
Error code.
error_description: Option<String>
Human-readable text providing additional information about the error.
error_uri: Option<String>
A URI identifying a human-readable web page with information about the error.
Trait Implementations§
source§impl Debug for OAuth2Error
impl Debug for OAuth2Error
source§impl<'de> Deserialize<'de> for OAuth2Error
impl<'de> Deserialize<'de> for OAuth2Error
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for OAuth2Error
impl Display for OAuth2Error
source§impl Error for OAuth2Error
impl Error for OAuth2Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl From<OAuth2Error> for ClientError
impl From<OAuth2Error> for ClientError
source§fn from(err: OAuth2Error) -> Self
fn from(err: OAuth2Error) -> Self
Converts to this type from the input type.
source§impl PartialEq for OAuth2Error
impl PartialEq for OAuth2Error
source§fn eq(&self, other: &OAuth2Error) -> bool
fn eq(&self, other: &OAuth2Error) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OAuth2Error
impl StructuralPartialEq for OAuth2Error
Auto Trait Implementations§
impl Freeze for OAuth2Error
impl RefUnwindSafe for OAuth2Error
impl Send for OAuth2Error
impl Sync for OAuth2Error
impl Unpin for OAuth2Error
impl UnwindSafe for OAuth2Error
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP