Crate kni_rs

Source
Expand description

A crate for using the Kamar api to fetch notices

§Sample usage

use kni_rs::Portal;

#[tokio::main]
async fn main() {
    let portal = Portal::new("https://demo.school.kiwi/api/api.php");
    let notices = portal.get_notices_today().await.unwrap();
    println!("{:?}", notices)
}

Modules§

response
Structures used to represent the data from the Kamar API

Structs§

Portal
Struct used to access the Kamar API.

Functions§

parse_date
Turns date string into DateTime<Utc>