[][src]Struct open_api_hydra::models::previous_consent_session::PreviousConsentSession

pub struct PreviousConsentSession {
    pub consent_request: Option<ConsentRequest>,
    pub grant_access_token_audience: Option<Vec<String>>,
    pub grant_scope: Option<Vec<String>>,
    pub remember: Option<bool>,
    pub remember_for: Option<i64>,
    pub session: Option<ConsentRequestSession>,
}

PreviousConsentSession : The response used to return used consent requests same as HandledLoginRequest, just with consent_request exposed as json

Fields

consent_request: Option<ConsentRequest>grant_access_token_audience: Option<Vec<String>>

GrantedAudience sets the audience the user authorized the client to use. Should be a subset of requested_access_token_audience.

grant_scope: Option<Vec<String>>

GrantScope sets the scope the user authorized the client to use. Should be a subset of requested_scope

remember: Option<bool>

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>

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<ConsentRequestSession>

Implementations

impl PreviousConsentSession[src]

pub fn new() -> PreviousConsentSession[src]

The response used to return used consent requests same as HandledLoginRequest, just with consent_request exposed as json

Trait Implementations

impl Clone for PreviousConsentSession[src]

impl Debug for PreviousConsentSession[src]

impl<'de> Deserialize<'de> for PreviousConsentSession[src]

impl PartialEq<PreviousConsentSession> for PreviousConsentSession[src]

impl Serialize for PreviousConsentSession[src]

impl StructuralPartialEq for PreviousConsentSession[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.