Struct untis::Units
[−]
[src]
pub struct Units { /* fields omitted */ }
Provides access to webuntis.com
Methods
impl Units
[src]
pub fn new(server: &str, school: &str, student: &str, password: &str) -> Self
[src]
The server and school name comes from the URL to access untis using a browser.
https://SERVER.webuntis.com/WebUntis/jsonrpc.do?school=SCHOOL
Username and password are required.
pub fn login(&mut self) -> Result<SessionInfo, Error>
[src]
Creates a new session
pub fn session(&self) -> Option<&SessionInfo>
[src]
pub fn status_data(&self) -> Result<StatusData, Error>
[src]
pub fn holidays(&self) -> Result<Holidays, Error>
[src]
pub fn rooms(&self) -> Result<Rooms, Error>
[src]
pub fn classes(&self) -> Result<Classes, Error>
[src]
pub fn subjects(&self) -> Result<Subjects, Error>
[src]
pub fn timetable(
&self,
id: usize,
ty: usize,
date: NaiveDate
) -> Result<Timetable, Error>
[src]
&self,
id: usize,
ty: usize,
date: NaiveDate
) -> Result<Timetable, Error>
pub fn departments(&self) -> Result<Departments, Error>
[src]
pub fn logout(&mut self) -> Result<(), Error>
[src]
Quits the current session