initial commit

This commit is contained in:
yggverse 2026-01-07 15:00:55 +02:00
parent 8dfc595961
commit e070db316c
19 changed files with 400 additions and 356 deletions

View file

@ -0,0 +1,33 @@
use serde::Deserialize;
use url::Url;
#[derive(Debug, Deserialize)]
pub struct Mysql {
pub database: String,
pub host: String,
pub password: String,
pub port: u16,
pub user: String,
}
#[derive(Debug, Deserialize)]
pub struct Channel {
/// RSS feed source
pub url: Url,
/// Limit channel items (unlimited by default)
pub items_limit: Option<usize>,
/// Save item title
pub persist_item_title: bool,
/// Save item description
pub persist_item_description: bool,
}
#[derive(Debug, Deserialize)]
pub struct Config {
pub mysql: Mysql,
pub channel: Vec<Channel>,
/// Update timeout in seconds
///
/// * None to generate once
pub update: Option<u64>,
}