init commit
This commit is contained in:
commit
6899d676aa
15 changed files with 1490 additions and 0 deletions
19
src/config.rs
Normal file
19
src/config.rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
use envconfig::Envconfig;
|
||||
|
||||
#[derive(Envconfig)]
|
||||
pub struct Config {
|
||||
#[envconfig(from = "PLAYER_BUS")]
|
||||
pub player_bus: Option<String>,
|
||||
|
||||
#[envconfig(from = "USERNAME")]
|
||||
pub username: String,
|
||||
|
||||
#[envconfig(from = "PASSWORD")]
|
||||
pub password: String,
|
||||
|
||||
#[envconfig(from = "API_KEY")]
|
||||
pub api_key: String,
|
||||
|
||||
#[envconfig(from = "API_SECRET")]
|
||||
pub api_secret: String
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue