pub struct AuthorizationResponse {
pub code: Option<String>,
pub id_token: Option<String>,
pub expires_in: Option<i64>,
pub access_token: Option<String>,
pub state: Option<String>,
pub session_state: Option<String>,
pub nonce: Option<String>,
pub error: Option<AuthorizationResponseError>,
pub error_description: Option<String>,
pub error_uri: Option<Url>,
pub additional_fields: HashMap<String, Value>,
pub log_pii: bool,
}
Fields§
§code: Option<String>
§id_token: Option<String>
§expires_in: Option<i64>
§access_token: Option<String>
§state: Option<String>
§session_state: Option<String>
§nonce: Option<String>
§error: Option<AuthorizationResponseError>
§error_description: Option<String>
§error_uri: Option<Url>
§additional_fields: HashMap<String, Value>
§log_pii: bool
When true debug logging will log personally identifiable information such as the id_token. This is disabled by default. When log_pii is enabled passing AuthorizationResponse to logging or print functions will log the access token and id token value.
Implementations§
Trait Implementations§
Source§impl Clone for AuthorizationResponse
impl Clone for AuthorizationResponse
Source§fn clone(&self) -> AuthorizationResponse
fn clone(&self) -> AuthorizationResponse
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 AuthorizationResponse
impl Debug for AuthorizationResponse
Source§impl<'de> Deserialize<'de> for AuthorizationResponse
impl<'de> Deserialize<'de> for AuthorizationResponse
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 for AuthorizationResponse
impl PartialEq for AuthorizationResponse
Source§impl Serialize for AuthorizationResponse
impl Serialize for AuthorizationResponse
Source§impl TryFrom<AuthorizationResponse> for IdToken
impl TryFrom<AuthorizationResponse> for IdToken
Source§type Error = AuthorizationFailure
type Error = AuthorizationFailure
The type returned in the event of a conversion error.
Source§impl TryFrom<AuthorizationResponse> for Token
impl TryFrom<AuthorizationResponse> for Token
Source§type Error = AuthorizationFailure
type Error = AuthorizationFailure
The type returned in the event of a conversion error.
impl Eq for AuthorizationResponse
impl StructuralPartialEq for AuthorizationResponse
Auto Trait Implementations§
impl Freeze for AuthorizationResponse
impl RefUnwindSafe for AuthorizationResponse
impl Send for AuthorizationResponse
impl Sync for AuthorizationResponse
impl Unpin for AuthorizationResponse
impl UnwindSafe for AuthorizationResponse
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