pub struct OAuth2ConsentSession {
pub consent_request: Option<Box<OAuth2ConsentRequest>>,
pub context: Option<Value>,
pub expires_at: Option<Box<OAuth2ConsentSessionExpiresAt>>,
pub grant_access_token_audience: Option<Vec<String>>,
pub grant_scope: Option<Vec<String>>,
pub handled_at: Option<String>,
pub remember: Option<bool>,
pub remember_for: Option<i64>,
pub session: Option<Box<AcceptOAuth2ConsentRequestSession>>,
}
Expand description
OAuth2ConsentSession : A completed OAuth 2.0 Consent Session.
Fields§
§consent_request: Option<Box<OAuth2ConsentRequest>>
§context: Option<Value>
§expires_at: Option<Box<OAuth2ConsentSessionExpiresAt>>
§grant_access_token_audience: Option<Vec<String>>
§grant_scope: Option<Vec<String>>
§handled_at: Option<String>
§remember: Option<bool>
Remember Consent Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope.
remember_for: Option<i64>
Remember Consent For RememberFor sets how long the consent authorization should be remembered for in seconds. If set to 0
, the authorization will be remembered indefinitely.
session: Option<Box<AcceptOAuth2ConsentRequestSession>>
Implementations§
source§impl OAuth2ConsentSession
impl OAuth2ConsentSession
sourcepub fn new() -> OAuth2ConsentSession
pub fn new() -> OAuth2ConsentSession
A completed OAuth 2.0 Consent Session.
Trait Implementations§
source§impl Clone for OAuth2ConsentSession
impl Clone for OAuth2ConsentSession
source§fn clone(&self) -> OAuth2ConsentSession
fn clone(&self) -> OAuth2ConsentSession
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 OAuth2ConsentSession
impl Debug for OAuth2ConsentSession
source§impl Default for OAuth2ConsentSession
impl Default for OAuth2ConsentSession
source§impl<'de> Deserialize<'de> for OAuth2ConsentSession
impl<'de> Deserialize<'de> for OAuth2ConsentSession
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 OAuth2ConsentSession
impl PartialEq for OAuth2ConsentSession
source§fn eq(&self, other: &OAuth2ConsentSession) -> bool
fn eq(&self, other: &OAuth2ConsentSession) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for OAuth2ConsentSession
impl Serialize for OAuth2ConsentSession
impl StructuralPartialEq for OAuth2ConsentSession
Auto Trait Implementations§
impl RefUnwindSafe for OAuth2ConsentSession
impl Send for OAuth2ConsentSession
impl Sync for OAuth2ConsentSession
impl Unpin for OAuth2ConsentSession
impl UnwindSafe for OAuth2ConsentSession
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