authentik_client/models/
authenticator_totp_challenge_response_request.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AuthenticatorTotpChallengeResponseRequest {
17 #[serde(rename = "component", skip_serializing_if = "Option::is_none")]
18 pub component: Option<String>,
19 #[serde(rename = "code")]
20 pub code: i32,
21}
22
23impl AuthenticatorTotpChallengeResponseRequest {
24 pub fn new(code: i32) -> AuthenticatorTotpChallengeResponseRequest {
26 AuthenticatorTotpChallengeResponseRequest { component: None, code }
27 }
28}