journallib/dto/
avg_mark_response.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use common::enums::grading_system_type::GradingSystemType;
use common::enums::subject::Subject;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

use crate::enums::mark_type::MarkType;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct AvgMarkResponse {
    pub id: Uuid,
    pub student: Uuid,
    pub teacher: Uuid,
    pub mark_value: i32,
    pub mark: MarkType,
    pub grade_type: GradingSystemType,
    pub subject: Subject,
    pub trend: i32,
}