parent
affe62b973
commit
4297860b9e
4 changed files with 6 additions and 0 deletions
src/fetchers
|
@ -1,3 +1,4 @@
|
|||
use async_trait::async_trait;
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use strum_macros::Display;
|
||||
use crate::fetchers::Fetcher::Jnc;
|
||||
|
@ -6,6 +7,7 @@ use crate::lemmy::{PostInfo};
|
|||
|
||||
pub mod jnovel;
|
||||
|
||||
#[async_trait]
|
||||
pub(crate) trait FetcherTrait {
|
||||
fn new() -> Self where Self: Sized;
|
||||
async fn check_feed(&self) -> Result<Vec<PostInfo>, ()>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue