pub struct PlanAdd<'a> {
pub subject_code: Cow<'a, str>,
pub course_code: Cow<'a, str>,
pub section_id: Cow<'a, str>,
pub section_code: Cow<'a, str>,
pub grading_option: Option<GradeOption>,
pub schedule_name: Option<Cow<'a, str>>,
pub unit_count: u8,
}Expand description
Use this struct to add more information regarding the course that you want to plan.
Prefer using the PlanAddBuilder to construct this object.
Fields§
§subject_code: Cow<'a, str>The subject code. For example, CSE.
course_code: Cow<'a, str>The course code. For example, 12.
section_id: Cow<'a, str>The section ID. For example, 0123123.
section_code: Cow<'a, str>The section code. For example A00.
grading_option: Option<GradeOption>The grading option.
schedule_name: Option<Cow<'a, str>>The schedule name. By default, this will use the default schedule.
unit_count: u8The number of units.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PlanAdd<'a>
impl<'a> RefUnwindSafe for PlanAdd<'a>
impl<'a> Send for PlanAdd<'a>
impl<'a> Sync for PlanAdd<'a>
impl<'a> Unpin for PlanAdd<'a>
impl<'a> UnsafeUnpin for PlanAdd<'a>
impl<'a> UnwindSafe for PlanAdd<'a>
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