pub struct NewMealEntry {
pub date: NaiveDate,
pub meal_type: String,
pub food_id: i64,
pub serving_g: f64,
pub display_unit: Option<String>,
pub display_quantity: Option<f64>,
}Fields§
§date: NaiveDate§meal_type: String§food_id: i64§serving_g: f64§display_unit: Option<String>§display_quantity: Option<f64>Trait Implementations§
Source§impl Clone for NewMealEntry
impl Clone for NewMealEntry
Source§fn clone(&self) -> NewMealEntry
fn clone(&self) -> NewMealEntry
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 moreAuto Trait Implementations§
impl Freeze for NewMealEntry
impl RefUnwindSafe for NewMealEntry
impl Send for NewMealEntry
impl Sync for NewMealEntry
impl Unpin for NewMealEntry
impl UnsafeUnpin for NewMealEntry
impl UnwindSafe for NewMealEntry
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