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§

source

fn authors(&self) -> Option<Vec<String>>

The author of the recipe.

source

fn categories(&self) -> Option<Vec<String>>

The categories of the recipe, e.g. appetizer, entrée, etc.

source

fn cook_time(&self) -> Option<Duration>

The time it takes to actually cook the dish.

source

fn cuisines(&self) -> Option<Vec<String>>

The cuisines of the recipe, e.g. mexican-inspired, french, etc.

source

fn description(&self) -> Option<String>

The description of the recipe.

source

fn image_url(&self) -> Option<String>

A URL to an image of the dish.

source

fn ingredients(&self) -> Option<Vec<String>>

All the ingredients used in the recipe.

source

fn instructions(&self) -> Option<Vec<String>>

All the steps in making the recipe.

source

fn language(&self) -> Option<String>

The language used in the recipe expressed in IETF BCP 47 standard.

source

fn name(&self) -> Option<String>

The name of the recipe.

source

fn nutrition(&self) -> Option<NutritionInformation>

Nutritional information about the dish.

source

fn prep_time(&self) -> Option<Duration>

The length of time it takes to prepare the items to be used in the instructions.

source

fn suitable_diets(&self) -> Option<Vec<RestrictedDiet>>

Indicates dietary restrictions or guidelines for which the recipe is suitable.

source

fn total_time(&self) -> Option<Duration>

The total time required to perform the instructions (including the prep time).

source

fn yields(&self) -> Option<String>

The quantity that results from the recipe.

Implementors§