mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-18 03:19:51 +03:00
ea61e1cf3b
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>
31 lines
832 B
Rust
Generated
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,
|
|
}
|
|
}
|
|
}
|