pub trait NutritionInformationTrait {
Show 24 methods
// Required methods
fn get_calories(&self) -> &[CaloriesProperty];
fn take_calories(&mut self) -> Vec<CaloriesProperty>;
fn get_carbohydrate_content(&self) -> &[CarbohydrateContentProperty];
fn take_carbohydrate_content(&mut self) -> Vec<CarbohydrateContentProperty>;
fn get_cholesterol_content(&self) -> &[CholesterolContentProperty];
fn take_cholesterol_content(&mut self) -> Vec<CholesterolContentProperty>;
fn get_fat_content(&self) -> &[FatContentProperty];
fn take_fat_content(&mut self) -> Vec<FatContentProperty>;
fn get_fiber_content(&self) -> &[FiberContentProperty];
fn take_fiber_content(&mut self) -> Vec<FiberContentProperty>;
fn get_protein_content(&self) -> &[ProteinContentProperty];
fn take_protein_content(&mut self) -> Vec<ProteinContentProperty>;
fn get_saturated_fat_content(&self) -> &[SaturatedFatContentProperty];
fn take_saturated_fat_content(&mut self) -> Vec<SaturatedFatContentProperty>;
fn get_serving_size(&self) -> &[ServingSizeProperty];
fn take_serving_size(&mut self) -> Vec<ServingSizeProperty>;
fn get_sodium_content(&self) -> &[SodiumContentProperty];
fn take_sodium_content(&mut self) -> Vec<SodiumContentProperty>;
fn get_sugar_content(&self) -> &[SugarContentProperty];
fn take_sugar_content(&mut self) -> Vec<SugarContentProperty>;
fn get_trans_fat_content(&self) -> &[TransFatContentProperty];
fn take_trans_fat_content(&mut self) -> Vec<TransFatContentProperty>;
fn get_unsaturated_fat_content(&self) -> &[UnsaturatedFatContentProperty];
fn take_unsaturated_fat_content(
&mut self
) -> Vec<UnsaturatedFatContentProperty>;
}
Expand description
This trait is for properties from https://schema.org/NutritionInformation.
Required Methods§
sourcefn get_calories(&self) -> &[CaloriesProperty]
fn get_calories(&self) -> &[CaloriesProperty]
Get https://schema.org/calories from Self
as borrowed slice.
sourcefn take_calories(&mut self) -> Vec<CaloriesProperty>
fn take_calories(&mut self) -> Vec<CaloriesProperty>
Take https://schema.org/calories from Self
as owned vector.
sourcefn get_carbohydrate_content(&self) -> &[CarbohydrateContentProperty]
fn get_carbohydrate_content(&self) -> &[CarbohydrateContentProperty]
Get https://schema.org/carbohydrateContent from Self
as borrowed slice.
sourcefn take_carbohydrate_content(&mut self) -> Vec<CarbohydrateContentProperty>
fn take_carbohydrate_content(&mut self) -> Vec<CarbohydrateContentProperty>
Take https://schema.org/carbohydrateContent from Self
as owned vector.
sourcefn get_cholesterol_content(&self) -> &[CholesterolContentProperty]
fn get_cholesterol_content(&self) -> &[CholesterolContentProperty]
Get https://schema.org/cholesterolContent from Self
as borrowed slice.
sourcefn take_cholesterol_content(&mut self) -> Vec<CholesterolContentProperty>
fn take_cholesterol_content(&mut self) -> Vec<CholesterolContentProperty>
Take https://schema.org/cholesterolContent from Self
as owned vector.
sourcefn get_fat_content(&self) -> &[FatContentProperty]
fn get_fat_content(&self) -> &[FatContentProperty]
Get https://schema.org/fatContent from Self
as borrowed slice.
sourcefn take_fat_content(&mut self) -> Vec<FatContentProperty>
fn take_fat_content(&mut self) -> Vec<FatContentProperty>
Take https://schema.org/fatContent from Self
as owned vector.
sourcefn get_fiber_content(&self) -> &[FiberContentProperty]
fn get_fiber_content(&self) -> &[FiberContentProperty]
Get https://schema.org/fiberContent from Self
as borrowed slice.
sourcefn take_fiber_content(&mut self) -> Vec<FiberContentProperty>
fn take_fiber_content(&mut self) -> Vec<FiberContentProperty>
Take https://schema.org/fiberContent from Self
as owned vector.
sourcefn get_protein_content(&self) -> &[ProteinContentProperty]
fn get_protein_content(&self) -> &[ProteinContentProperty]
Get https://schema.org/proteinContent from Self
as borrowed slice.
sourcefn take_protein_content(&mut self) -> Vec<ProteinContentProperty>
fn take_protein_content(&mut self) -> Vec<ProteinContentProperty>
Take https://schema.org/proteinContent from Self
as owned vector.
sourcefn get_saturated_fat_content(&self) -> &[SaturatedFatContentProperty]
fn get_saturated_fat_content(&self) -> &[SaturatedFatContentProperty]
Get https://schema.org/saturatedFatContent from Self
as borrowed slice.
sourcefn take_saturated_fat_content(&mut self) -> Vec<SaturatedFatContentProperty>
fn take_saturated_fat_content(&mut self) -> Vec<SaturatedFatContentProperty>
Take https://schema.org/saturatedFatContent from Self
as owned vector.
sourcefn get_serving_size(&self) -> &[ServingSizeProperty]
fn get_serving_size(&self) -> &[ServingSizeProperty]
Get https://schema.org/servingSize from Self
as borrowed slice.
sourcefn take_serving_size(&mut self) -> Vec<ServingSizeProperty>
fn take_serving_size(&mut self) -> Vec<ServingSizeProperty>
Take https://schema.org/servingSize from Self
as owned vector.
sourcefn get_sodium_content(&self) -> &[SodiumContentProperty]
fn get_sodium_content(&self) -> &[SodiumContentProperty]
Get https://schema.org/sodiumContent from Self
as borrowed slice.
sourcefn take_sodium_content(&mut self) -> Vec<SodiumContentProperty>
fn take_sodium_content(&mut self) -> Vec<SodiumContentProperty>
Take https://schema.org/sodiumContent from Self
as owned vector.
sourcefn get_sugar_content(&self) -> &[SugarContentProperty]
fn get_sugar_content(&self) -> &[SugarContentProperty]
Get https://schema.org/sugarContent from Self
as borrowed slice.
sourcefn take_sugar_content(&mut self) -> Vec<SugarContentProperty>
fn take_sugar_content(&mut self) -> Vec<SugarContentProperty>
Take https://schema.org/sugarContent from Self
as owned vector.
sourcefn get_trans_fat_content(&self) -> &[TransFatContentProperty]
fn get_trans_fat_content(&self) -> &[TransFatContentProperty]
Get https://schema.org/transFatContent from Self
as borrowed slice.
sourcefn take_trans_fat_content(&mut self) -> Vec<TransFatContentProperty>
fn take_trans_fat_content(&mut self) -> Vec<TransFatContentProperty>
Take https://schema.org/transFatContent from Self
as owned vector.
sourcefn get_unsaturated_fat_content(&self) -> &[UnsaturatedFatContentProperty]
fn get_unsaturated_fat_content(&self) -> &[UnsaturatedFatContentProperty]
Get https://schema.org/unsaturatedFatContent from Self
as borrowed slice.
sourcefn take_unsaturated_fat_content(&mut self) -> Vec<UnsaturatedFatContentProperty>
fn take_unsaturated_fat_content(&mut self) -> Vec<UnsaturatedFatContentProperty>
Take https://schema.org/unsaturatedFatContent from Self
as owned vector.