Add fetchers trait module

This commit is contained in:
Neshura 2024-01-08 21:06:18 +01:00
parent 0e88326293
commit ba3110da0e
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

10
src/fetchers/mod.rs Normal file
View file

@ -0,0 +1,10 @@
use async_trait::async_trait;
pub mod jnovel;
mod tobooks;
#[async_trait]
pub(crate) trait Fetcher {
type Return;
async fn check_feed(&self) -> Result<Vec<Self::Return>, ()>;
}