pub struct Grade {Show 18 fields
pub id: i64,
pub lesson: GradesRedirect,
pub subject: GradesRedirect,
pub student: GradesRedirect,
pub category: GradesRedirect,
pub added_by: GradesRedirect,
pub grade: String,
pub date: String,
pub add_date: String,
pub semester: i64,
pub is_constituent: bool,
pub is_semester: bool,
pub is_semester_proposition: bool,
pub is_final: bool,
pub is_final_proposition: bool,
pub comments: Option<Vec<GradesRedirect>>,
pub improvement: Option<GradesRedirect>,
pub resit: Option<GradesRedirect>,
}Expand description
A student’s grade.
Fields§
§id: i64Unique grade identifier.
lesson: GradesRedirectReference to the lesson this grade is from.
subject: GradesRedirectReference to the subject.
student: GradesRedirectReference to the student who received this grade.
category: GradesRedirectReference to the grade category (e.g., test, quiz).
added_by: GradesRedirectReference to the teacher who added this grade.
grade: StringThe grade value (e.g., “5”, “4+”, “A”).
date: StringDate when the grade was given.
add_date: StringDate when the grade was added to the system.
semester: i64Semester number (1 or 2).
is_constituent: boolWhether this grade counts toward the average.
is_semester: boolWhether this is a semester grade.
is_semester_proposition: boolWhether this is a proposed semester grade.
is_final: boolWhether this is a final grade.
is_final_proposition: boolWhether this is a proposed final grade.
comments: Option<Vec<GradesRedirect>>References to comments on this grade.
improvement: Option<GradesRedirect>Reference to an improvement grade.
resit: Option<GradesRedirect>Reference to a resit grade.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Grade
impl<'de> Deserialize<'de> for Grade
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Grade
impl RefUnwindSafe for Grade
impl Send for Grade
impl Sync for Grade
impl Unpin for Grade
impl UnwindSafe for Grade
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more