/*
* authentik
*
* Making authentication simple.
*
* The version of the OpenAPI document: 2026.2.3
* Contact: hello@goauthentik.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ConsentChallengeResponseRequest : Consent challenge response, any valid response request is valid
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConsentChallengeResponseRequest {
#[serde(rename = "component", skip_serializing_if = "Option::is_none")]
pub component: Option<String>,
#[serde(rename = "token")]
pub token: String,
}
impl ConsentChallengeResponseRequest {
/// Consent challenge response, any valid response request is valid
pub fn new(token: String) -> ConsentChallengeResponseRequest {
ConsentChallengeResponseRequest { component: None, token }
}
}