Files
pgcat/src/config.rs

25 lines
465 B
Rust
Raw Normal View History

2022-02-05 10:02:13 -08:00
#[derive(Clone, PartialEq, Hash, std::cmp::Eq)]
pub struct Address {
pub host: String,
pub port: String,
}
#[derive(Clone, PartialEq, Hash, std::cmp::Eq)]
pub struct User {
pub name: String,
pub password: String,
}
// #[derive(Clone)]
// pub struct Config {
// pools: HashMap<String, Pool<ServerPool>>,
// }
// impl Config {
// pub fn new() -> Config {
// Config {
// pools: HashMap::new(),
// }
// }
// }