use serde::{Serialize, Deserialize};
use crate::api::v3::users::models::{UserInfo, UserNotFound};
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct GetUserByOtherIdResponse {
pub result: UserInfo,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(tag = "reason")]
pub enum GetUserByOtherIdError {
#[serde(rename(serialize = "user_not_found", deserialize = "user_not_found"))]
UserNotFound(UserNotFound),
#[serde(other)]
Other,
}