mirror of
https://github.com/Djeeberjr/fw-anwesenheit.git
synced 2026-04-30 18:49:09 +00:00
13 lines
412 B
Rust
13 lines
412 B
Rust
use alloc::vec::Vec;
|
|
|
|
use crate::store::{Date, IDMapping, id_store::AttendanceDay};
|
|
|
|
pub trait Persistence {
|
|
async fn load_day(&mut self, day: Date) -> Option<AttendanceDay>;
|
|
async fn save_day(&mut self, day: Date, data: &AttendanceDay);
|
|
async fn list_days(&mut self) -> Vec<Date>;
|
|
|
|
async fn load_mapping(&mut self) -> Option<IDMapping>;
|
|
async fn save_mapping(&mut self, data: &IDMapping);
|
|
}
|