pub struct Homework {
pub id: i64,
pub content: String,
pub date: String,
pub category: HomeworksCategory,
pub lesson_no: Option<String>,
pub time_from: String,
pub time_to: String,
pub created_by: HomeworksCategory,
pub class: Option<HomeworksCategory>,
pub subject: Option<HomeworksCategory>,
pub add_date: String,
pub classroom: Option<HomeworksClassroom>,
}Expand description
A homework assignment.
Fields§
§id: i64Unique homework identifier.
content: StringHomework content/description.
date: StringDue date.
category: HomeworksCategoryReference to the homework category.
lesson_no: Option<String>Lesson number when assigned.
time_from: StringStart time.
time_to: StringEnd time.
created_by: HomeworksCategoryReference to the teacher who created this homework.
class: Option<HomeworksCategory>Reference to the class.
subject: Option<HomeworksCategory>Reference to the subject.
add_date: StringDate when the homework was added.
classroom: Option<HomeworksClassroom>Classroom information.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Homework
impl<'de> Deserialize<'de> for Homework
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 Homework
impl RefUnwindSafe for Homework
impl Send for Homework
impl Sync for Homework
impl Unpin for Homework
impl UnwindSafe for Homework
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