Support domain in config file

This commit is contained in:
Joscha 2024-01-01 19:35:46 +01:00
parent c094f526a5
commit 5995d06cad
3 changed files with 41 additions and 36 deletions

View file

@ -35,7 +35,13 @@ pub struct EuphRoom {
}
#[derive(Debug, Default, Deserialize, Document)]
pub struct Euph {
pub struct EuphServer {
#[document(metavar = "room")]
pub rooms: HashMap<String, EuphRoom>,
}
#[derive(Debug, Default, Deserialize, Document)]
pub struct Euph {
#[document(metavar = "domain")]
pub servers: HashMap<String, EuphServer>,
}