use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AuthenticatorTotpChallengeResponseRequest {
#[serde(rename = "component", skip_serializing_if = "Option::is_none")]
pub component: Option<String>,
#[serde(rename = "code")]
pub code: String,
}
impl AuthenticatorTotpChallengeResponseRequest {
pub fn new(code: String) -> AuthenticatorTotpChallengeResponseRequest {
AuthenticatorTotpChallengeResponseRequest { component: None, code }
}
}