Support domain in config file
This commit is contained in:
parent
c094f526a5
commit
5995d06cad
3 changed files with 41 additions and 36 deletions
|
|
@ -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>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue