podal/src/feed/mod.rs

19 lines
337 B
Rust
Raw Normal View History

use crate::prelude::*;
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
use atom_syndication::Feed;
pub use find::find;
pub use get::reqwest_blocking_get;
pub struct FeedEnv {
pub find: FeedFind,
pub get: FeedGet,
}
pub type FeedFind = fn(&str, &str, &FetchGet) -> Result<String>;
pub type FeedGet = fn(&str) -> Result<Feed>;