use serde::{Deserialize, Serialize};

use super::{class::Class, grade_type::GradeTypeName};

#[derive(Debug, Deserialize, Serialize, Clone)]
pub struct Grade {
    pub grade_type: GradeTypeName,
    pub value: u16,
    pub class: Class,
    pub comment: Option<String>,
    pub unit: String,
}
