pub struct NutritionInformation {
Show 24 fields pub calories: Vec<CaloriesProperty>, pub carbohydrate_content: Vec<CarbohydrateContentProperty>, pub cholesterol_content: Vec<CholesterolContentProperty>, pub fat_content: Vec<FatContentProperty>, pub fiber_content: Vec<FiberContentProperty>, pub protein_content: Vec<ProteinContentProperty>, pub saturated_fat_content: Vec<SaturatedFatContentProperty>, pub serving_size: Vec<ServingSizeProperty>, pub sodium_content: Vec<SodiumContentProperty>, pub sugar_content: Vec<SugarContentProperty>, pub trans_fat_content: Vec<TransFatContentProperty>, pub unsaturated_fat_content: Vec<UnsaturatedFatContentProperty>, pub additional_type: Vec<AdditionalTypeProperty>, pub alternate_name: Vec<AlternateNameProperty>, pub description: Vec<DescriptionProperty>, pub disambiguating_description: Vec<DisambiguatingDescriptionProperty>, pub identifier: Vec<IdentifierProperty>, pub image: Vec<ImageProperty>, pub main_entity_of_page: Vec<MainEntityOfPageProperty>, pub name: Vec<NameProperty>, pub potential_action: Vec<PotentialActionProperty>, pub same_as: Vec<SameAsProperty>, pub subject_of: Vec<SubjectOfProperty>, pub url: Vec<UrlProperty>,
}
Expand description

Fields§

§calories: Vec<CaloriesProperty>§carbohydrate_content: Vec<CarbohydrateContentProperty>§cholesterol_content: Vec<CholesterolContentProperty>§fat_content: Vec<FatContentProperty>§fiber_content: Vec<FiberContentProperty>§protein_content: Vec<ProteinContentProperty>§saturated_fat_content: Vec<SaturatedFatContentProperty>§serving_size: Vec<ServingSizeProperty>§sodium_content: Vec<SodiumContentProperty>§sugar_content: Vec<SugarContentProperty>§trans_fat_content: Vec<TransFatContentProperty>§unsaturated_fat_content: Vec<UnsaturatedFatContentProperty>§additional_type: Vec<AdditionalTypeProperty>§alternate_name: Vec<AlternateNameProperty>§description: Vec<DescriptionProperty>§disambiguating_description: Vec<DisambiguatingDescriptionProperty>§identifier: Vec<IdentifierProperty>§image: Vec<ImageProperty>§main_entity_of_page: Vec<MainEntityOfPageProperty>§name: Vec<NameProperty>§potential_action: Vec<PotentialActionProperty>§same_as: Vec<SameAsProperty>§subject_of: Vec<SubjectOfProperty>§url: Vec<UrlProperty>

Trait Implementations§

source§

impl NutritionInformationTrait for NutritionInformation

source§

fn get_calories(&self) -> &[CaloriesProperty]

Get https://schema.org/calories from Self as borrowed slice.
source§

fn take_calories(&mut self) -> Vec<CaloriesProperty>

Take https://schema.org/calories from Self as owned vector.
source§

fn get_carbohydrate_content(&self) -> &[CarbohydrateContentProperty]

Get https://schema.org/carbohydrateContent from Self as borrowed slice.
source§

fn take_carbohydrate_content(&mut self) -> Vec<CarbohydrateContentProperty>

Take https://schema.org/carbohydrateContent from Self as owned vector.
source§

fn get_cholesterol_content(&self) -> &[CholesterolContentProperty]

Get https://schema.org/cholesterolContent from Self as borrowed slice.
source§

fn take_cholesterol_content(&mut self) -> Vec<CholesterolContentProperty>

Take https://schema.org/cholesterolContent from Self as owned vector.
source§

fn get_fat_content(&self) -> &[FatContentProperty]

Get https://schema.org/fatContent from Self as borrowed slice.
source§

fn take_fat_content(&mut self) -> Vec<FatContentProperty>

Take https://schema.org/fatContent from Self as owned vector.
source§

fn get_fiber_content(&self) -> &[FiberContentProperty]

Get https://schema.org/fiberContent from Self as borrowed slice.
source§

fn take_fiber_content(&mut self) -> Vec<FiberContentProperty>

Take https://schema.org/fiberContent from Self as owned vector.
source§

fn get_protein_content(&self) -> &[ProteinContentProperty]

Get https://schema.org/proteinContent from Self as borrowed slice.
source§

fn take_protein_content(&mut self) -> Vec<ProteinContentProperty>

Take https://schema.org/proteinContent from Self as owned vector.
source§

fn get_saturated_fat_content(&self) -> &[SaturatedFatContentProperty]

Get https://schema.org/saturatedFatContent from Self as borrowed slice.
source§

fn take_saturated_fat_content(&mut self) -> Vec<SaturatedFatContentProperty>

Take https://schema.org/saturatedFatContent from Self as owned vector.
source§

fn get_serving_size(&self) -> &[ServingSizeProperty]

Get https://schema.org/servingSize from Self as borrowed slice.
source§

fn take_serving_size(&mut self) -> Vec<ServingSizeProperty>

Take https://schema.org/servingSize from Self as owned vector.
source§

fn get_sodium_content(&self) -> &[SodiumContentProperty]

Get https://schema.org/sodiumContent from Self as borrowed slice.
source§

fn take_sodium_content(&mut self) -> Vec<SodiumContentProperty>

Take https://schema.org/sodiumContent from Self as owned vector.
source§

fn get_sugar_content(&self) -> &[SugarContentProperty]

Get https://schema.org/sugarContent from Self as borrowed slice.
source§

fn take_sugar_content(&mut self) -> Vec<SugarContentProperty>

Take https://schema.org/sugarContent from Self as owned vector.
source§

fn get_trans_fat_content(&self) -> &[TransFatContentProperty]

Get https://schema.org/transFatContent from Self as borrowed slice.
source§

fn take_trans_fat_content(&mut self) -> Vec<TransFatContentProperty>

Take https://schema.org/transFatContent from Self as owned vector.
source§

fn get_unsaturated_fat_content(&self) -> &[UnsaturatedFatContentProperty]

source§

fn take_unsaturated_fat_content(&mut self) -> Vec<UnsaturatedFatContentProperty>

source§

impl ThingTrait for NutritionInformation

source§

fn get_additional_type(&self) -> &[AdditionalTypeProperty]

Get https://schema.org/additionalType from Self as borrowed slice.
source§

fn take_additional_type(&mut self) -> Vec<AdditionalTypeProperty>

Take https://schema.org/additionalType from Self as owned vector.
source§

fn get_alternate_name(&self) -> &[AlternateNameProperty]

Get https://schema.org/alternateName from Self as borrowed slice.
source§

fn take_alternate_name(&mut self) -> Vec<AlternateNameProperty>

Take https://schema.org/alternateName from Self as owned vector.
source§

fn get_description(&self) -> &[DescriptionProperty]

Get https://schema.org/description from Self as borrowed slice.
source§

fn take_description(&mut self) -> Vec<DescriptionProperty>

Take https://schema.org/description from Self as owned vector.
source§

fn get_disambiguating_description(&self) -> &[DisambiguatingDescriptionProperty]

source§

fn take_disambiguating_description( &mut self ) -> Vec<DisambiguatingDescriptionProperty>

source§

fn get_identifier(&self) -> &[IdentifierProperty]

Get https://schema.org/identifier from Self as borrowed slice.
source§

fn take_identifier(&mut self) -> Vec<IdentifierProperty>

Take https://schema.org/identifier from Self as owned vector.
source§

fn get_image(&self) -> &[ImageProperty]

Get https://schema.org/image from Self as borrowed slice.
source§

fn take_image(&mut self) -> Vec<ImageProperty>

Take https://schema.org/image from Self as owned vector.
source§

fn get_main_entity_of_page(&self) -> &[MainEntityOfPageProperty]

Get https://schema.org/mainEntityOfPage from Self as borrowed slice.
source§

fn take_main_entity_of_page(&mut self) -> Vec<MainEntityOfPageProperty>

Take https://schema.org/mainEntityOfPage from Self as owned vector.
source§

fn get_name(&self) -> &[NameProperty]

Get https://schema.org/name from Self as borrowed slice.
source§

fn take_name(&mut self) -> Vec<NameProperty>

Take https://schema.org/name from Self as owned vector.
source§

fn get_potential_action(&self) -> &[PotentialActionProperty]

Get https://schema.org/potentialAction from Self as borrowed slice.
source§

fn take_potential_action(&mut self) -> Vec<PotentialActionProperty>

Take https://schema.org/potentialAction from Self as owned vector.
source§

fn get_same_as(&self) -> &[SameAsProperty]

Get https://schema.org/sameAs from Self as borrowed slice.
source§

fn take_same_as(&mut self) -> Vec<SameAsProperty>

Take https://schema.org/sameAs from Self as owned vector.
source§

fn get_subject_of(&self) -> &[SubjectOfProperty]

Get https://schema.org/subjectOf from Self as borrowed slice.
source§

fn take_subject_of(&mut self) -> Vec<SubjectOfProperty>

Take https://schema.org/subjectOf from Self as owned vector.
source§

fn get_url(&self) -> &[UrlProperty]

Get https://schema.org/url from Self as borrowed slice.
source§

fn take_url(&mut self) -> Vec<UrlProperty>

Take https://schema.org/url from Self as owned vector.
source§

impl StructuredValueTrait for NutritionInformation

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.