[−][src]Struct openidconnect::StandardErrorResponse
Error response returned by server after requesting an access token.
The fields in this structure are defined in
Section 5.2 of RFC 6749. This
trait is parameterized by a ErrorResponseType
to support error types specific to future OAuth2
authentication schemes and extensions.
Methods
impl<T> StandardErrorResponse<T> where
T: ErrorResponseType,
[src]
T: ErrorResponseType,
pub fn new(
error: T,
error_description: Option<String>,
error_uri: Option<String>
) -> StandardErrorResponse<T>
[src]
error: T,
error_description: Option<String>,
error_uri: Option<String>
) -> StandardErrorResponse<T>
Instantiate a new ErrorResponse
.
Arguments
error
- REQUIRED. A single ASCII error code deserialized to the generic parameter.ErrorResponseType
.error_description
- OPTIONAL. Human-readable ASCII text providing additional information, used to assist the client developer in understanding the error that occurred. Values for this parameter MUST NOT include characters outside the set%x20-21 / %x23-5B / %x5D-7E
.error_uri
- OPTIONAL. A URI identifying a human-readable web page with information about the error used to provide the client developer with additional information about the error. Values for the "error_uri" parameter MUST conform to the URI-reference syntax and thus MUST NOT include characters outside the set%x21 / %x23-5B / %x5D-7E
.
pub fn error(&self) -> &T
[src]
REQUIRED. A single ASCII error code deserialized to the generic parameter
ErrorResponseType
.
pub fn error_description(&self) -> Option<&String>
[src]
OPTIONAL. Human-readable ASCII text providing additional information, used to assist
the client developer in understanding the error that occurred. Values for this
parameter MUST NOT include characters outside the set %x20-21 / %x23-5B / %x5D-7E
.
pub fn error_uri(&self) -> Option<&String>
[src]
OPTIONAL. A URI identifying a human-readable web page with information about the error,
used to provide the client developer with additional information about the error.
Values for the "error_uri" parameter MUST conform to the URI-reference syntax and
thus MUST NOT include characters outside the set %x21 / %x23-5B / %x5D-7E
.
Trait Implementations
impl<T> Debug for StandardErrorResponse<T> where
T: ErrorResponseType + Debug,
[src]
T: ErrorResponseType + Debug,
impl<'de, T> Deserialize<'de> for StandardErrorResponse<T> where
T: ErrorResponseType,
[src]
T: ErrorResponseType,
fn deserialize<__D>(
__deserializer: __D
) -> Result<StandardErrorResponse<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<StandardErrorResponse<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T> ErrorResponse for StandardErrorResponse<T> where
T: ErrorResponseType + 'static,
[src]
T: ErrorResponseType + 'static,
impl<TE> Display for StandardErrorResponse<TE> where
TE: ErrorResponseType + Display,
[src]
TE: ErrorResponseType + Display,
impl<T> Clone for StandardErrorResponse<T> where
T: ErrorResponseType + Clone,
[src]
T: ErrorResponseType + Clone,
fn clone(&self) -> StandardErrorResponse<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Serialize for StandardErrorResponse<T> where
T: ErrorResponseType,
[src]
T: ErrorResponseType,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<T> PartialEq<StandardErrorResponse<T>> for StandardErrorResponse<T> where
T: ErrorResponseType + PartialEq<T>,
[src]
T: ErrorResponseType + PartialEq<T>,
fn eq(&self, other: &StandardErrorResponse<T>) -> bool
[src]
fn ne(&self, other: &StandardErrorResponse<T>) -> bool
[src]
Auto Trait Implementations
impl<T> Unpin for StandardErrorResponse<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for StandardErrorResponse<T>
impl<T> Send for StandardErrorResponse<T>
impl<T> UnwindSafe for StandardErrorResponse<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for StandardErrorResponse<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,