pub struct RejectOAuth2Request {
pub error: Option<String>,
pub error_debug: Option<String>,
pub error_description: Option<String>,
pub error_hint: Option<String>,
pub status_code: Option<i64>,
}
Fields§
§error: Option<String>
The error should follow the OAuth2 error format (e.g. invalid_request
, login_required
). Defaults to request_denied
.
error_debug: Option<String>
Debug contains information to help resolve the problem as a developer. Usually not exposed to the public but only in the server logs.
error_description: Option<String>
Description of the error in a human readable format.
error_hint: Option<String>
Hint to help resolve the error.
status_code: Option<i64>
Represents the HTTP status code of the error (e.g. 401 or 403) Defaults to 400
Implementations§
source§impl RejectOAuth2Request
impl RejectOAuth2Request
pub fn new() -> RejectOAuth2Request
Trait Implementations§
source§impl Clone for RejectOAuth2Request
impl Clone for RejectOAuth2Request
source§fn clone(&self) -> RejectOAuth2Request
fn clone(&self) -> RejectOAuth2Request
Returns a copy of the value. Read more
1.0.0 · 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 RejectOAuth2Request
impl Debug for RejectOAuth2Request
source§impl Default for RejectOAuth2Request
impl Default for RejectOAuth2Request
source§impl<'de> Deserialize<'de> for RejectOAuth2Request
impl<'de> Deserialize<'de> for RejectOAuth2Request
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 PartialEq<RejectOAuth2Request> for RejectOAuth2Request
impl PartialEq<RejectOAuth2Request> for RejectOAuth2Request
source§fn eq(&self, other: &RejectOAuth2Request) -> bool
fn eq(&self, other: &RejectOAuth2Request) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.