fusionauth_rust_client/models/
user_consent_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UserConsentResponse {
17 #[serde(rename = "userConsent", skip_serializing_if = "Option::is_none")]
18 pub user_consent: Option<Box<models::UserConsent>>,
19 #[serde(rename = "userConsents", skip_serializing_if = "Option::is_none")]
20 pub user_consents: Option<Vec<models::UserConsent>>,
21}
22
23impl UserConsentResponse {
24 pub fn new() -> UserConsentResponse {
26 UserConsentResponse {
27 user_consent: None,
28 user_consents: None,
29 }
30 }
31}
32