Files
hemma/backend/src/collector.rs
2022-07-29 01:41:28 +02:00

16 lines
287 B
Rust

mod markdown_web;
pub use markdown_web::MarkdownWeb;
use serde::Deserialize;
#[async_trait::async_trait]
pub trait Collector {
async fn collect(&mut self) -> anyhow::Result<String>;
}
#[derive(Deserialize)]
pub struct CollectorConfig {
pub markdown_web_links: Vec<String>,
}