feat(shared domain): start working on shared domain
This commit is contained in:
pare
8774c8d0be
commit
e10412e438
S'han modificat 3 arxius amb 15 adicions i 0 eliminacions
1
src/contexts/mod.rs
Normal file
1
src/contexts/mod.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pub mod shared;
|
13
src/contexts/shared/domain/mod.rs
Normal file
13
src/contexts/shared/domain/mod.rs
Normal file
|
@ -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>;
|
||||||
|
}
|
1
src/contexts/shared/mod.rs
Normal file
1
src/contexts/shared/mod.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pub mod domain;
|
Loading…
Referencia en una nova incidència