userlib/dto/
auth_request.rs

1
2
3
4
5
6
7
8
9
10
11
use common::security::captcha::CaptchaRequest;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct AuthRequest {
    pub email: String,
    pub password: Option<String>,
    pub domain_host: Option<String>,
    pub captcha: Option<CaptchaRequest>,
}