Trait schema_org_types::CookActionTrait
source · pub trait CookActionTrait {
// Required methods
fn get_food_establishment(&self) -> &[FoodEstablishmentProperty];
fn take_food_establishment(&mut self) -> Vec<FoodEstablishmentProperty>;
fn get_food_event(&self) -> &[FoodEventProperty];
fn take_food_event(&mut self) -> Vec<FoodEventProperty>;
fn get_recipe(&self) -> &[RecipeProperty];
fn take_recipe(&mut self) -> Vec<RecipeProperty>;
}
Expand description
This trait is for properties from https://schema.org/CookAction.
Required Methods§
sourcefn get_food_establishment(&self) -> &[FoodEstablishmentProperty]
fn get_food_establishment(&self) -> &[FoodEstablishmentProperty]
Get https://schema.org/foodEstablishment from Self
as borrowed slice.
sourcefn take_food_establishment(&mut self) -> Vec<FoodEstablishmentProperty>
fn take_food_establishment(&mut self) -> Vec<FoodEstablishmentProperty>
Take https://schema.org/foodEstablishment from Self
as owned vector.
sourcefn get_food_event(&self) -> &[FoodEventProperty]
fn get_food_event(&self) -> &[FoodEventProperty]
Get https://schema.org/foodEvent from Self
as borrowed slice.
sourcefn take_food_event(&mut self) -> Vec<FoodEventProperty>
fn take_food_event(&mut self) -> Vec<FoodEventProperty>
Take https://schema.org/foodEvent from Self
as owned vector.
sourcefn get_recipe(&self) -> &[RecipeProperty]
fn get_recipe(&self) -> &[RecipeProperty]
Get https://schema.org/recipe from Self
as borrowed slice.
sourcefn take_recipe(&mut self) -> Vec<RecipeProperty>
fn take_recipe(&mut self) -> Vec<RecipeProperty>
Take https://schema.org/recipe from Self
as owned vector.