pub trait RecipeTrait {
Show 20 methods // Required methods fn get_cook_time(&self) -> &[CookTimeProperty]; fn take_cook_time(&mut self) -> Vec<CookTimeProperty>; fn get_cooking_method(&self) -> &[CookingMethodProperty]; fn take_cooking_method(&mut self) -> Vec<CookingMethodProperty>; fn get_ingredients(&self) -> &[IngredientsProperty]; fn take_ingredients(&mut self) -> Vec<IngredientsProperty>; fn get_nutrition(&self) -> &[NutritionProperty]; fn take_nutrition(&mut self) -> Vec<NutritionProperty>; fn get_recipe_category(&self) -> &[RecipeCategoryProperty]; fn take_recipe_category(&mut self) -> Vec<RecipeCategoryProperty>; fn get_recipe_cuisine(&self) -> &[RecipeCuisineProperty]; fn take_recipe_cuisine(&mut self) -> Vec<RecipeCuisineProperty>; fn get_recipe_ingredient(&self) -> &[RecipeIngredientProperty]; fn take_recipe_ingredient(&mut self) -> Vec<RecipeIngredientProperty>; fn get_recipe_instructions(&self) -> &[RecipeInstructionsProperty]; fn take_recipe_instructions(&mut self) -> Vec<RecipeInstructionsProperty>; fn get_recipe_yield(&self) -> &[RecipeYieldProperty]; fn take_recipe_yield(&mut self) -> Vec<RecipeYieldProperty>; fn get_suitable_for_diet(&self) -> &[SuitableForDietProperty]; fn take_suitable_for_diet(&mut self) -> Vec<SuitableForDietProperty>;
}
Expand description

This trait is for properties from https://schema.org/Recipe.

Required Methods§

source

fn get_cook_time(&self) -> &[CookTimeProperty]

Get https://schema.org/cookTime from Self as borrowed slice.

source

fn take_cook_time(&mut self) -> Vec<CookTimeProperty>

Take https://schema.org/cookTime from Self as owned vector.

source

fn get_cooking_method(&self) -> &[CookingMethodProperty]

Get https://schema.org/cookingMethod from Self as borrowed slice.

source

fn take_cooking_method(&mut self) -> Vec<CookingMethodProperty>

Take https://schema.org/cookingMethod from Self as owned vector.

source

fn get_ingredients(&self) -> &[IngredientsProperty]

👎Deprecated: This schema is superseded by https://schema.org/recipeIngredient.

Get https://schema.org/ingredients from Self as borrowed slice.

source

fn take_ingredients(&mut self) -> Vec<IngredientsProperty>

👎Deprecated: This schema is superseded by https://schema.org/recipeIngredient.

Take https://schema.org/ingredients from Self as owned vector.

source

fn get_nutrition(&self) -> &[NutritionProperty]

Get https://schema.org/nutrition from Self as borrowed slice.

source

fn take_nutrition(&mut self) -> Vec<NutritionProperty>

Take https://schema.org/nutrition from Self as owned vector.

source

fn get_recipe_category(&self) -> &[RecipeCategoryProperty]

Get https://schema.org/recipeCategory from Self as borrowed slice.

source

fn take_recipe_category(&mut self) -> Vec<RecipeCategoryProperty>

Take https://schema.org/recipeCategory from Self as owned vector.

source

fn get_recipe_cuisine(&self) -> &[RecipeCuisineProperty]

Get https://schema.org/recipeCuisine from Self as borrowed slice.

source

fn take_recipe_cuisine(&mut self) -> Vec<RecipeCuisineProperty>

Take https://schema.org/recipeCuisine from Self as owned vector.

source

fn get_recipe_ingredient(&self) -> &[RecipeIngredientProperty]

Get https://schema.org/recipeIngredient from Self as borrowed slice.

source

fn take_recipe_ingredient(&mut self) -> Vec<RecipeIngredientProperty>

Take https://schema.org/recipeIngredient from Self as owned vector.

source

fn get_recipe_instructions(&self) -> &[RecipeInstructionsProperty]

Get https://schema.org/recipeInstructions from Self as borrowed slice.

source

fn take_recipe_instructions(&mut self) -> Vec<RecipeInstructionsProperty>

Take https://schema.org/recipeInstructions from Self as owned vector.

source

fn get_recipe_yield(&self) -> &[RecipeYieldProperty]

Get https://schema.org/recipeYield from Self as borrowed slice.

source

fn take_recipe_yield(&mut self) -> Vec<RecipeYieldProperty>

Take https://schema.org/recipeYield from Self as owned vector.

source

fn get_suitable_for_diet(&self) -> &[SuitableForDietProperty]

Get https://schema.org/suitableForDiet from Self as borrowed slice.

source

fn take_suitable_for_diet(&mut self) -> Vec<SuitableForDietProperty>

Take https://schema.org/suitableForDiet from Self as owned vector.

Implementors§