Type Alias BasicErrorResponse

Source
pub type BasicErrorResponse = StandardErrorResponse<BasicErrorResponseType>;
Available on crate feature e2e-encryption and non-WebAssembly only.
Expand description

Error response specialization for basic OAuth2 implementation.

Aliased Type§

struct BasicErrorResponse { /* private fields */ }

Implementations

Source§

impl<T> StandardErrorResponse<T>

Source

pub fn new( 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.
Source

pub fn error(&self) -> &T

REQUIRED. A single ASCII error code deserialized to the generic parameter ErrorResponseType.

Source

pub fn error_description(&self) -> Option<&String>

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.

Source

pub fn error_uri(&self) -> Option<&String>

OPTIONAL. 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

Source§

impl<T> Clone for StandardErrorResponse<T>

Source§

fn clone(&self) -> StandardErrorResponse<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Debug for StandardErrorResponse<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de, T> Deserialize<'de> for StandardErrorResponse<T>

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<StandardErrorResponse<T>, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<TE> Display for StandardErrorResponse<TE>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<T> PartialEq for StandardErrorResponse<T>

Source§

fn eq(&self, other: &StandardErrorResponse<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T> Serialize for StandardErrorResponse<T>

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<T> Eq for StandardErrorResponse<T>
where T: Eq + ErrorResponseType,

Source§

impl<T> ErrorResponse for StandardErrorResponse<T>
where T: ErrorResponseType + Display + 'static,

Source§

impl<T> StructuralPartialEq for StandardErrorResponse<T>