This commit is contained in:
Dominik Werder
2021-04-27 11:41:33 +02:00
parent bd9c231310
commit 0b40702b6c
12 changed files with 170 additions and 46 deletions

View File

@@ -112,9 +112,18 @@ impl Node {
}
}
#[derive(Debug)]
pub struct Database {
pub name: String,
pub host: String,
pub user: String,
pub pass: String,
}
#[derive(Debug)]
pub struct Cluster {
pub nodes: Vec<Arc<Node>>,
pub database: Database,
}
#[derive(Debug)]