2024-03-16 01:05:17 +01:00
|
|
|
use serde::Deserialize;
|
2024-03-16 16:43:55 +01:00
|
|
|
use std::net::IpAddr;
|
2024-03-16 01:05:17 +01:00
|
|
|
|
2024-03-16 01:57:21 +01:00
|
|
|
#[derive(Deserialize, Debug, Clone)]
|
|
|
|
pub struct Config {
|
|
|
|
pub host: IpAddr,
|
|
|
|
pub port: u16,
|
2024-03-16 16:43:55 +01:00
|
|
|
pub log_level: log::Level,
|
2024-03-16 01:57:21 +01:00
|
|
|
pub discord_token: String,
|
|
|
|
pub miniflux_base_url: String,
|
|
|
|
pub miniflux_webhook_secret: String,
|
|
|
|
pub payload_max_size: u64,
|
|
|
|
pub whitelisted_user_ids: Vec<u64>,
|
2024-03-16 01:05:17 +01:00
|
|
|
}
|