pub struct RecipeIngredient {
pub id: i64,
pub uuid: String,
pub recipe_id: i64,
pub food_id: i64,
pub quantity_g: f64,
pub food_name: Option<String>,
pub food_brand: Option<String>,
pub calories: Option<f64>,
pub protein: Option<f64>,
pub carbs: Option<f64>,
pub fat: Option<f64>,
}Fields§
§id: i64§uuid: String§recipe_id: i64§food_id: i64§quantity_g: f64§food_name: Option<String>§food_brand: Option<String>§calories: Option<f64>§protein: Option<f64>§carbs: Option<f64>§fat: Option<f64>Trait Implementations§
Source§impl Clone for RecipeIngredient
impl Clone for RecipeIngredient
Source§fn clone(&self) -> RecipeIngredient
fn clone(&self) -> RecipeIngredient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecipeIngredient
impl Debug for RecipeIngredient
Auto Trait Implementations§
impl Freeze for RecipeIngredient
impl RefUnwindSafe for RecipeIngredient
impl Send for RecipeIngredient
impl Sync for RecipeIngredient
impl Unpin for RecipeIngredient
impl UnsafeUnpin for RecipeIngredient
impl UnwindSafe for RecipeIngredient
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