pub struct Supernova { /* private fields */ }Implementations§
Source§impl Supernova
impl Supernova
pub fn new() -> Arc<Supernova>
pub fn login(&self, username: &str, password: &str) -> Result<String, Error>
pub fn logout(&self) -> Result<(), Error>
pub fn set_auth_token(&self, token: String) -> Result<(), Error>
pub fn get_departments( self: &Arc<Supernova>, conf: &RequestConfig, ) -> Result<Vec<Department>, Error>
pub fn get_buildings( self: &Arc<Supernova>, conf: &RequestConfig, ) -> Result<Vec<Building>, Error>
pub fn get_places( self: &Arc<Supernova>, conf: &RequestConfig, ) -> Result<Vec<Place>, Error>
pub fn get_classes( self: &Arc<Supernova>, conf: &RequestConfig, ) -> Result<Vec<Class>, Error>
pub fn get_courses( self: &Arc<Supernova>, conf: &RequestConfig, ) -> Result<Vec<Course>, Error>
pub fn get_building( self: &Arc<Supernova>, id: BuildingKey, conf: &RequestConfig, ) -> Result<Building, Error>
pub fn get_place( self: &Arc<Supernova>, id: PlaceKey, conf: &RequestConfig, ) -> Result<Place, Error>
pub fn get_department( self: &Arc<Supernova>, id: DepartmentKey, conf: &RequestConfig, ) -> Result<Department, Error>
pub fn get_course( self: &Arc<Supernova>, id: CourseKey, conf: &RequestConfig, ) -> Result<Course, Error>
pub fn get_class( self: &Arc<Supernova>, id: ClassKey, conf: &RequestConfig, ) -> Result<Class, Error>
pub fn get_class_instance( self: &Arc<Supernova>, id: ClassInstanceKey, conf: &RequestConfig, ) -> Result<ClassInstance, Error>
pub fn get_student( self: &Arc<Supernova>, id: StudentKey, conf: &RequestConfig, ) -> Result<Student, Error>
pub fn get_teacher( self: &Arc<Supernova>, id: ClassKey, conf: &RequestConfig, ) -> Result<Teacher, Error>
pub fn get_enrollment( self: &Arc<Supernova>, id: ClassKey, conf: &RequestConfig, ) -> Result<Enrollment, Error>
pub fn get_shift( self: &Arc<Supernova>, id: ClassKey, conf: &RequestConfig, ) -> Result<ClassShift, Error>
pub fn warmup(self: &Arc<Supernova>) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Supernova
impl RefUnwindSafe for Supernova
impl Send for Supernova
impl Sync for Supernova
impl Unpin for Supernova
impl UnwindSafe for Supernova
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more