Trait schema_org_types::RecipeTrait
source · 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§
sourcefn get_cook_time(&self) -> &[CookTimeProperty]
fn get_cook_time(&self) -> &[CookTimeProperty]
Get https://schema.org/cookTime from Self
as borrowed slice.
sourcefn take_cook_time(&mut self) -> Vec<CookTimeProperty>
fn take_cook_time(&mut self) -> Vec<CookTimeProperty>
Take https://schema.org/cookTime from Self
as owned vector.
sourcefn get_cooking_method(&self) -> &[CookingMethodProperty]
fn get_cooking_method(&self) -> &[CookingMethodProperty]
Get https://schema.org/cookingMethod from Self
as borrowed slice.
sourcefn take_cooking_method(&mut self) -> Vec<CookingMethodProperty>
fn take_cooking_method(&mut self) -> Vec<CookingMethodProperty>
Take https://schema.org/cookingMethod from Self
as owned vector.
sourcefn get_ingredients(&self) -> &[IngredientsProperty]
fn get_ingredients(&self) -> &[IngredientsProperty]
Get https://schema.org/ingredients from Self
as borrowed slice.
sourcefn take_ingredients(&mut self) -> Vec<IngredientsProperty>
fn take_ingredients(&mut self) -> Vec<IngredientsProperty>
Take https://schema.org/ingredients from Self
as owned vector.
sourcefn get_nutrition(&self) -> &[NutritionProperty]
fn get_nutrition(&self) -> &[NutritionProperty]
Get https://schema.org/nutrition from Self
as borrowed slice.
sourcefn take_nutrition(&mut self) -> Vec<NutritionProperty>
fn take_nutrition(&mut self) -> Vec<NutritionProperty>
Take https://schema.org/nutrition from Self
as owned vector.
sourcefn get_recipe_category(&self) -> &[RecipeCategoryProperty]
fn get_recipe_category(&self) -> &[RecipeCategoryProperty]
Get https://schema.org/recipeCategory from Self
as borrowed slice.
sourcefn take_recipe_category(&mut self) -> Vec<RecipeCategoryProperty>
fn take_recipe_category(&mut self) -> Vec<RecipeCategoryProperty>
Take https://schema.org/recipeCategory from Self
as owned vector.
sourcefn get_recipe_cuisine(&self) -> &[RecipeCuisineProperty]
fn get_recipe_cuisine(&self) -> &[RecipeCuisineProperty]
Get https://schema.org/recipeCuisine from Self
as borrowed slice.
sourcefn take_recipe_cuisine(&mut self) -> Vec<RecipeCuisineProperty>
fn take_recipe_cuisine(&mut self) -> Vec<RecipeCuisineProperty>
Take https://schema.org/recipeCuisine from Self
as owned vector.
sourcefn get_recipe_ingredient(&self) -> &[RecipeIngredientProperty]
fn get_recipe_ingredient(&self) -> &[RecipeIngredientProperty]
Get https://schema.org/recipeIngredient from Self
as borrowed slice.
sourcefn take_recipe_ingredient(&mut self) -> Vec<RecipeIngredientProperty>
fn take_recipe_ingredient(&mut self) -> Vec<RecipeIngredientProperty>
Take https://schema.org/recipeIngredient from Self
as owned vector.
sourcefn get_recipe_instructions(&self) -> &[RecipeInstructionsProperty]
fn get_recipe_instructions(&self) -> &[RecipeInstructionsProperty]
Get https://schema.org/recipeInstructions from Self
as borrowed slice.
sourcefn take_recipe_instructions(&mut self) -> Vec<RecipeInstructionsProperty>
fn take_recipe_instructions(&mut self) -> Vec<RecipeInstructionsProperty>
Take https://schema.org/recipeInstructions from Self
as owned vector.
sourcefn get_recipe_yield(&self) -> &[RecipeYieldProperty]
fn get_recipe_yield(&self) -> &[RecipeYieldProperty]
Get https://schema.org/recipeYield from Self
as borrowed slice.
sourcefn take_recipe_yield(&mut self) -> Vec<RecipeYieldProperty>
fn take_recipe_yield(&mut self) -> Vec<RecipeYieldProperty>
Take https://schema.org/recipeYield from Self
as owned vector.
sourcefn get_suitable_for_diet(&self) -> &[SuitableForDietProperty]
fn get_suitable_for_diet(&self) -> &[SuitableForDietProperty]
Get https://schema.org/suitableForDiet from Self
as borrowed slice.
sourcefn take_suitable_for_diet(&mut self) -> Vec<SuitableForDietProperty>
fn take_suitable_for_diet(&mut self) -> Vec<SuitableForDietProperty>
Take https://schema.org/suitableForDiet from Self
as owned vector.