recipe_scraper/
lib.rs

1mod schema_org;
2pub use schema_org::{Recipe as SchemaOrgRecipe, SchemaEntry as SchemaOrgEntry};
3
4pub trait Extract {
5    type Output;
6    type Collection: IntoIterator<Item = Self::Output>;
7
8    fn extract_recipes(&self) -> Self::Collection;
9}
10
11pub trait Scrape {
12    type Output;
13    type Collection: IntoIterator<Item = Self::Output>;
14
15    fn scrape_html(html: impl AsRef<str>) -> Self::Collection;
16}