use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UserResponseDto {
#[serde(rename = "avatarColor")]
pub avatar_color: models::UserAvatarColor,
#[serde(rename = "email")]
pub email: String,
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "profileChangedAt")]
pub profile_changed_at: String,
#[serde(rename = "profileImagePath")]
pub profile_image_path: String,
}
impl UserResponseDto {
pub fn new(avatar_color: models::UserAvatarColor, email: String, id: String, name: String, profile_changed_at: String, profile_image_path: String) -> UserResponseDto {
UserResponseDto {
avatar_color,
email,
id,
name,
profile_changed_at,
profile_image_path,
}
}
}