27 lines
592 B
Rust
27 lines
592 B
Rust
|
use std::net::SocketAddr;
|
||
|
use serde::Deserialize;
|
||
|
|
||
|
#[derive(Deserialize)]
|
||
|
pub struct UberConfig {
|
||
|
pub irc: IrcConfig,
|
||
|
pub spotify: SpotifyConfig, // TODO: make optional
|
||
|
pub db_path: Option<String>,
|
||
|
}
|
||
|
|
||
|
#[derive(Deserialize)]
|
||
|
pub struct SpotifyConfig {
|
||
|
pub spotify_client_id: String,
|
||
|
pub spotify_client_secret: String,
|
||
|
}
|
||
|
|
||
|
#[derive(Deserialize)]
|
||
|
pub struct IrcConfig {
|
||
|
pub channels: Vec<String>,
|
||
|
pub host: String,
|
||
|
pub tls: bool,
|
||
|
pub mode: Option<String>,
|
||
|
pub nickname: Option<String>,
|
||
|
pub port: u16,
|
||
|
pub username: String,
|
||
|
pub prefix: String,
|
||
|
}
|