botx_api/api/v3/users/by_login/
models.rs1use serde::{Serialize, Deserialize};
2
3use crate::api::v3::users::models::{UserInfo, UserNotFound};
4
5#[derive(Debug, Serialize, Deserialize, Clone)]
7pub struct GetUserByLoginResponse {
8 pub result: UserInfo,
10}
11
12#[derive(Debug, Serialize, Deserialize, Clone)]
14#[serde(tag = "reason")]
15pub enum GetUserByLoginError {
16 #[serde(rename(serialize = "user_not_found", deserialize = "user_not_found"))]
18 UserNotFound(UserNotFound),
19
20 #[serde(other)]
23 Other,
24}