Struct stud_ip_scraper::course::Course
source · pub struct Course {
pub id: String,
pub name: String,
pub group: usize,
pub modules: Vec<Box<dyn CourseModule>>,
/* private fields */
}
Expand description
Represents a course and it’s modules
A singular module can be accessed, by type with the get_module!() macro.
Fields§
§id: String
The course ID
name: String
The courses Name
group: usize
The group index in which the current user has added this course
Corresponds to the groups
filed of the MyCourses
struct
modules: Vec<Box<dyn CourseModule>>
The modules of the course
Needs to be queried with Course::query_modules()
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Course
impl<'de> Deserialize<'de> for Course
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 !RefUnwindSafe for Course
impl !Send for Course
impl !Sync for Course
impl Unpin for Course
impl !UnwindSafe for Course
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