18 lines
329 B
Rust
18 lines
329 B
Rust
use secrecy::SecretString;
|
|
use serde::Deserialize;
|
|
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct Config {
|
|
pub bot: BotConfig,
|
|
pub db: DatabaseConfig,
|
|
}
|
|
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct DatabaseConfig {
|
|
pub url: SecretString,
|
|
}
|
|
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct BotConfig {
|
|
pub token: SecretString,
|
|
}
|