Crate ubs_lib

Source
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§

parser
Low-level access to the schedule parser.
session
Low-level access to the host connection.

Enums§

Career
An enum of available careers in the catalog.
Course
An enum of available courses in the catalog.
ParseIdError
Error when parsing id.
ScheduleError
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.