pub trait RecipeInformationProvider {
Show 15 methods
// Required methods
fn authors(&self) -> Option<Vec<String>>;
fn categories(&self) -> Option<Vec<String>>;
fn cook_time(&self) -> Option<Duration>;
fn cuisines(&self) -> Option<Vec<String>>;
fn description(&self) -> Option<String>;
fn image_url(&self) -> Option<String>;
fn ingredients(&self) -> Option<Vec<String>>;
fn instructions(&self) -> Option<Vec<String>>;
fn language(&self) -> Option<String>;
fn name(&self) -> Option<String>;
fn nutrition(&self) -> Option<NutritionInformation>;
fn prep_time(&self) -> Option<Duration>;
fn suitable_diets(&self) -> Option<Vec<RestrictedDiet>>;
fn total_time(&self) -> Option<Duration>;
fn yields(&self) -> Option<String>;
}Expand description
Provides methods to retrieve information from a recipe after it has been scraped. See https://schema.org/Recipe
Required Methods§
The author of the recipe.
sourcefn categories(&self) -> Option<Vec<String>>
fn categories(&self) -> Option<Vec<String>>
The categories of the recipe, e.g. appetizer, entrée, etc.
sourcefn cuisines(&self) -> Option<Vec<String>>
fn cuisines(&self) -> Option<Vec<String>>
The cuisines of the recipe, e.g. mexican-inspired, french, etc.
sourcefn description(&self) -> Option<String>
fn description(&self) -> Option<String>
The description of the recipe.
sourcefn ingredients(&self) -> Option<Vec<String>>
fn ingredients(&self) -> Option<Vec<String>>
All the ingredients used in the recipe.
sourcefn instructions(&self) -> Option<Vec<String>>
fn instructions(&self) -> Option<Vec<String>>
All the steps in making the recipe.
sourcefn language(&self) -> Option<String>
fn language(&self) -> Option<String>
The language used in the recipe expressed in IETF BCP 47 standard.
sourcefn nutrition(&self) -> Option<NutritionInformation>
fn nutrition(&self) -> Option<NutritionInformation>
Nutritional information about the dish.
sourcefn prep_time(&self) -> Option<Duration>
fn prep_time(&self) -> Option<Duration>
The length of time it takes to prepare the items to be used in the instructions.
sourcefn suitable_diets(&self) -> Option<Vec<RestrictedDiet>>
fn suitable_diets(&self) -> Option<Vec<RestrictedDiet>>
Indicates dietary restrictions or guidelines for which the recipe is suitable.
sourcefn total_time(&self) -> Option<Duration>
fn total_time(&self) -> Option<Duration>
The total time required to perform the instructions (including the prep time).