pub struct MealEntry {Show 16 fields
pub id: i64,
pub uuid: String,
pub date: String,
pub meal_type: String,
pub food_id: i64,
pub serving_g: f64,
pub display_unit: Option<String>,
pub display_quantity: Option<f64>,
pub created_at: String,
pub updated_at: String,
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§date: String§meal_type: String§food_id: i64§serving_g: f64§display_unit: Option<String>§display_quantity: Option<f64>§created_at: String§updated_at: String§food_name: Option<String>§food_brand: Option<String>§calories: Option<f64>§protein: Option<f64>§carbs: Option<f64>§fat: Option<f64>Trait Implementations§
Auto Trait Implementations§
impl Freeze for MealEntry
impl RefUnwindSafe for MealEntry
impl Send for MealEntry
impl Sync for MealEntry
impl Unpin for MealEntry
impl UnsafeUnpin for MealEntry
impl UnwindSafe for MealEntry
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