2023-07-25 14:47:33 +01:00
|
|
|
use crate::prelude::*;
|
|
|
|
|
2023-07-28 18:35:41 +01:00
|
|
|
use crate::fetch::FetchGet;
|
|
|
|
|
2023-07-25 10:46:47 +01:00
|
|
|
mod find;
|
2023-07-25 10:50:00 +01:00
|
|
|
mod get;
|
2023-07-25 10:46:47 +01:00
|
|
|
|
2023-07-28 18:35:41 +01:00
|
|
|
use atom_syndication::Feed;
|
2023-07-25 14:47:33 +01:00
|
|
|
pub use find::find;
|
2023-07-28 18:35:41 +01:00
|
|
|
pub use get::reqwest_blocking_get;
|
2023-07-25 14:47:33 +01:00
|
|
|
|
2023-07-28 18:35:41 +01:00
|
|
|
pub struct FeedEnv {
|
|
|
|
pub find: FeedFind,
|
|
|
|
pub get: FeedGet,
|
|
|
|
}
|
2023-07-25 14:47:33 +01:00
|
|
|
|
2023-07-28 18:35:41 +01:00
|
|
|
pub type FeedFind = fn(&str, &str, &FetchGet) -> Result<String>;
|
2023-07-25 14:47:33 +01:00
|
|
|
pub type FeedGet = fn(&str) -> Result<Feed>;
|