feat(shared domain): start working on shared domain

This commit is contained in:
Pau Figueras 2024-05-12 04:01:22 +02:00
pare 8774c8d0be
commit e10412e438
S'han modificat 3 arxius amb 15 adicions i 0 eliminacions

1
src/contexts/mod.rs Normal file
Veure arxiu

@ -0,0 +1 @@
pub mod shared;

Veure arxiu

@ -0,0 +1,13 @@
use std::path::PathBuf;
pub struct SQLWriter {
database: PathBuf,
}
pub trait Writable {
fn write() -> Result<String, diesel::result::Error>;
}
pub trait Readable {
fn read() -> Result<Box<Self>, diesel::result::Error>;
}

Veure arxiu

@ -0,0 +1 @@
pub mod domain;