Expand description
§ubs
ubs
provides an interface for fetching real-time Univeristy at Buffalo class schedules.
§Usage
use ubs_lib::{Course, Semester};
let mut schedule_iter = ubs_lib::schedule_iter(
Course::Cse115,
Semester::Spring2023,
).await?;
while let Some(schedule) = schedule_iter.try_next().await? {
for group in schedule?.group_iter() {
for class in group.class_iter() {
// do stuff
}
}
}
Modules§
Enums§
- Career
- An enum of available careers in the catalog.
- Course
- An enum of available courses in the catalog.
- Parse
IdError - Error when parsing id.
- Schedule
Error - Error when iterating schedules.
- Semester
- An enum of available semesters in the catalog.
Functions§
- schedule_
iter - Iterator over each page of the specified query.
- schedule_
iter_ with_ career - iterator over each page of the specified query with an explicit career.