open_api_hydra/models/
accept_consent_request.rs

1/*
2 * ORY Hydra
3 *
4 * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5 *
6 * The version of the OpenAPI document: latest
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AcceptConsentRequest {
16    /// GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`.
17    #[serde(rename = "grant_access_token_audience", skip_serializing_if = "Option::is_none")]
18    pub grant_access_token_audience: Option<Vec<String>>,
19    /// GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`.
20    #[serde(rename = "grant_scope", skip_serializing_if = "Option::is_none")]
21    pub grant_scope: Option<Vec<String>>,
22    /// 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.
23    #[serde(rename = "remember", skip_serializing_if = "Option::is_none")]
24    pub remember: Option<bool>,
25    /// RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely.
26    #[serde(rename = "remember_for", skip_serializing_if = "Option::is_none")]
27    pub remember_for: Option<i64>,
28    #[serde(rename = "session", skip_serializing_if = "Option::is_none")]
29    pub session: Option<crate::models::ConsentRequestSession>,
30}
31
32impl AcceptConsentRequest {
33    pub fn new() -> AcceptConsentRequest {
34        AcceptConsentRequest {
35            grant_access_token_audience: None,
36            grant_scope: None,
37            remember: None,
38            remember_for: None,
39            session: None,
40        }
41    }
42}
43
44