paringboard/src/bot/config.rs
2026-01-05 22:54:32 +09:00

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,
}