#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct OAuth2ConsentSession {
#[serde(rename = "consent_request", skip_serializing_if = "Option::is_none")]
pub consent_request: Option<Box<crate::models::OAuth2ConsentRequest>>,
#[serde(rename = "context", skip_serializing_if = "Option::is_none")]
pub context: Option<serde_json::Value>,
#[serde(rename = "expires_at", skip_serializing_if = "Option::is_none")]
pub expires_at: Option<Box<crate::models::OAuth2ConsentSessionExpiresAt>>,
#[serde(rename = "grant_access_token_audience", skip_serializing_if = "Option::is_none")]
pub grant_access_token_audience: Option<Vec<String>>,
#[serde(rename = "grant_scope", skip_serializing_if = "Option::is_none")]
pub grant_scope: Option<Vec<String>>,
#[serde(rename = "handled_at", skip_serializing_if = "Option::is_none")]
pub handled_at: Option<String>,
#[serde(rename = "remember", skip_serializing_if = "Option::is_none")]
pub remember: Option<bool>,
#[serde(rename = "remember_for", skip_serializing_if = "Option::is_none")]
pub remember_for: Option<i64>,
#[serde(rename = "session", skip_serializing_if = "Option::is_none")]
pub session: Option<Box<crate::models::AcceptOAuth2ConsentRequestSession>>,
}
impl Default for OAuth2ConsentSession {
fn default() -> Self {
Self::new()
}
}
impl OAuth2ConsentSession {
pub fn new() -> OAuth2ConsentSession {
OAuth2ConsentSession {
consent_request: None,
context: None,
expires_at: None,
grant_access_token_audience: None,
grant_scope: None,
handled_at: None,
remember: None,
remember_for: None,
session: None,
}
}
}