Add fetchers trait module
This commit is contained in:
parent
0e88326293
commit
ba3110da0e
1 changed files with 10 additions and 0 deletions
10
src/fetchers/mod.rs
Normal file
10
src/fetchers/mod.rs
Normal 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>, ()>;
|
||||||
|
}
|
Loading…
Reference in a new issue