Struct rust_recipe::NutritionInformation
source · pub struct NutritionInformation {
pub calories: Option<f32>,
pub carbohydrate_grams: Option<f32>,
pub cholesterol_milligrams: Option<f32>,
pub fat_grams: Option<f32>,
pub fiber_grams: Option<f32>,
pub protein_grams: Option<f32>,
pub saturated_fat_grams: Option<f32>,
pub serving_size: Option<String>,
pub sodium_milligrams: Option<f32>,
pub sugar_grams: Option<f32>,
pub trans_fat_grams: Option<f32>,
pub unsaturated_fat_grams: Option<f32>,
}Expand description
Nutritional Information from a recipe. See https://schema.org/NutritionInformation
Fields§
§calories: Option<f32>The number of calories.
carbohydrate_grams: Option<f32>The number of grams of carbohydrates.
cholesterol_milligrams: Option<f32>The number of milligrams of cholesterol.
fat_grams: Option<f32>The number of grams of fat.
fiber_grams: Option<f32>The number of grams of fiber.
protein_grams: Option<f32>The number of grams of protein.
saturated_fat_grams: Option<f32>The number of grams of saturated fat.
serving_size: Option<String>The serving size, in terms of the number of volume or mass.
sodium_milligrams: Option<f32>The number of milligrams of sodium.
sugar_grams: Option<f32>The number of grams of sugar.
trans_fat_grams: Option<f32>The number of grams of trans fat.
unsaturated_fat_grams: Option<f32>The number of grams of unsaturated fat.
Implementations§
Trait Implementations§
source§impl Debug for NutritionInformation
impl Debug for NutritionInformation
source§impl Default for NutritionInformation
impl Default for NutritionInformation
source§fn default() -> NutritionInformation
fn default() -> NutritionInformation
Returns the “default value” for a type. Read more
source§impl PartialEq for NutritionInformation
impl PartialEq for NutritionInformation
source§fn eq(&self, other: &NutritionInformation) -> bool
fn eq(&self, other: &NutritionInformation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NutritionInformation
Auto Trait Implementations§
impl RefUnwindSafe for NutritionInformation
impl Send for NutritionInformation
impl Sync for NutritionInformation
impl Unpin for NutritionInformation
impl UnwindSafe for NutritionInformation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more