Files
authentik/packages/client-rust/src/models/captcha_challenge_response_request.rs
authentik-automation[bot] ea61e1cf3b root: bump version to 2026.8.0-rc1 (#22167)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
2026-05-08 17:15:32 +00:00

31 lines
832 B
Rust
Generated

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