Add an in-memory storage adaptor

This commit is contained in:
Ben Grant 2023-05-15 18:18:26 +10:00
parent bf5bcf9992
commit 1a8db405de
9 changed files with 190 additions and 2 deletions

View file

@ -1,5 +1,6 @@
use chrono::{DateTime, Utc};
#[derive(Clone)]
pub struct Event {
pub id: String,
pub name: String,
@ -9,6 +10,7 @@ pub struct Event {
pub timezone: String,
}
#[derive(Clone)]
/// Info about a deleted event
pub struct EventDeletion {
pub id: String,

View file

@ -1,5 +1,6 @@
use chrono::{DateTime, Utc};
#[derive(Clone)]
pub struct Person {
pub name: String,
pub password_hash: Option<String>,

View file

@ -1,3 +1,4 @@
#[derive(Clone)]
pub struct Stats {
pub event_count: i64,
pub person_count: i64,