pub struct LessonSubject {
pub id: i32,
pub name: String,
pub num: i32,
pub short: String,
pub is_extra_curricular: Option<bool>,
pub is_block_lesson: Option<bool>,
}Expand description
An academic subject.
Fields§
§id: i32Unique subject identifier.
name: StringFull subject name (e.g., “Mathematics”).
num: i32Subject number in the curriculum.
short: StringShort subject code (e.g., “MAT”).
is_extra_curricular: Option<bool>Whether this is an extracurricular subject.
is_block_lesson: Option<bool>Whether this is a block lesson.
Trait Implementations§
Source§impl Debug for LessonSubject
impl Debug for LessonSubject
Source§impl<'de> Deserialize<'de> for LessonSubject
impl<'de> Deserialize<'de> for LessonSubject
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 LessonSubject
impl RefUnwindSafe for LessonSubject
impl Send for LessonSubject
impl Sync for LessonSubject
impl Unpin for LessonSubject
impl UnwindSafe for LessonSubject
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