teacherlib/dto/
professional_profile_response.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use serde::{Deserialize, Serialize};
use uuid::Uuid;
use crate::jsonb::award::Award;
use crate::jsonb::content::Content;
use crate::jsonb::permit::Permit;
use crate::jsonb::skill::Skill;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct ProfessionalProfileResponse {
    pub id: Uuid,
    pub teacher_id: Uuid,
    pub permits: Vec<Permit>,
    pub content: Content,
    pub awards: Vec<Award>,
    pub skills: Vec<Skill>,
    pub about: Option<String>,
    pub hobbies: Vec<String>,

}