add io file

This commit is contained in:
Mylloon 2022-08-15 19:20:14 +02:00
parent bbe73a029c
commit ab78a9d221
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

13
src/io.rs Normal file
View file

@ -0,0 +1,13 @@
use ics::ICalendar;
pub fn export(
timetable: Vec<crate::timetable::models::Day>,
dates: std::collections::HashMap<
usize,
Vec<(chrono::DateTime<chrono::Utc>, chrono::DateTime<chrono::Utc>)>,
>,
) -> ICalendar<'static> {
let mut calendar = ICalendar::new("2.0", "cal8tor");
calendar
}