pub trait CourseInstanceTrait {
// Required methods
fn get_course_mode(&self) -> &[CourseModeProperty];
fn take_course_mode(&mut self) -> Vec<CourseModeProperty>;
fn get_course_schedule(&self) -> &[CourseScheduleProperty];
fn take_course_schedule(&mut self) -> Vec<CourseScheduleProperty>;
fn get_course_workload(&self) -> &[CourseWorkloadProperty];
fn take_course_workload(&mut self) -> Vec<CourseWorkloadProperty>;
fn get_instructor(&self) -> &[InstructorProperty];
fn take_instructor(&mut self) -> Vec<InstructorProperty>;
}
Expand description
This trait is for properties from https://schema.org/CourseInstance.
Required Methods§
sourcefn get_course_mode(&self) -> &[CourseModeProperty]
fn get_course_mode(&self) -> &[CourseModeProperty]
Get https://schema.org/courseMode from Self
as borrowed slice.
sourcefn take_course_mode(&mut self) -> Vec<CourseModeProperty>
fn take_course_mode(&mut self) -> Vec<CourseModeProperty>
Take https://schema.org/courseMode from Self
as owned vector.
sourcefn get_course_schedule(&self) -> &[CourseScheduleProperty]
fn get_course_schedule(&self) -> &[CourseScheduleProperty]
Get https://schema.org/courseSchedule from Self
as borrowed slice.
sourcefn take_course_schedule(&mut self) -> Vec<CourseScheduleProperty>
fn take_course_schedule(&mut self) -> Vec<CourseScheduleProperty>
Take https://schema.org/courseSchedule from Self
as owned vector.
sourcefn get_course_workload(&self) -> &[CourseWorkloadProperty]
fn get_course_workload(&self) -> &[CourseWorkloadProperty]
Get https://schema.org/courseWorkload from Self
as borrowed slice.
sourcefn take_course_workload(&mut self) -> Vec<CourseWorkloadProperty>
fn take_course_workload(&mut self) -> Vec<CourseWorkloadProperty>
Take https://schema.org/courseWorkload from Self
as owned vector.
sourcefn get_instructor(&self) -> &[InstructorProperty]
fn get_instructor(&self) -> &[InstructorProperty]
Get https://schema.org/instructor from Self
as borrowed slice.
sourcefn take_instructor(&mut self) -> Vec<InstructorProperty>
fn take_instructor(&mut self) -> Vec<InstructorProperty>
Take https://schema.org/instructor from Self
as owned vector.