New architecture

This commit is contained in:
Adrian Heine 2019-12-26 20:50:23 +01:00
parent e4b3424ba6
commit 907a4962c5
61 changed files with 2742 additions and 3100 deletions

18
src/artifacts/mod.rs Normal file
View file

@ -0,0 +1,18 @@
use std::path::{Path as ActualPath, PathBuf};
#[derive(Clone, Debug)]
pub struct Path(pub PathBuf);
impl AsRef<ActualPath> for Path {
fn as_ref(&self) -> &ActualPath {
&self.0
}
}
#[derive(Clone, Debug)]
pub struct UserName(pub String);
#[derive(Clone, Debug)]
pub struct ServiceName(pub String);
#[derive(Clone, Debug)]
pub struct DatabaseName(pub String);