pub struct DailyTarget {
pub day_of_week: i64,
pub calories: i64,
pub protein_pct: Option<i64>,
pub carbs_pct: Option<i64>,
pub fat_pct: Option<i64>,
pub protein_g: Option<f64>,
pub carbs_g: Option<f64>,
pub fat_g: Option<f64>,
}Fields§
§day_of_week: i64§calories: i64§protein_pct: Option<i64>§carbs_pct: Option<i64>§fat_pct: Option<i64>§protein_g: Option<f64>§carbs_g: Option<f64>§fat_g: Option<f64>Implementations§
Trait Implementations§
Source§impl Clone for DailyTarget
impl Clone for DailyTarget
Source§fn clone(&self) -> DailyTarget
fn clone(&self) -> DailyTarget
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 DailyTarget
impl Debug for DailyTarget
Source§impl<'de> Deserialize<'de> for DailyTarget
impl<'de> Deserialize<'de> for DailyTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DailyTarget
impl RefUnwindSafe for DailyTarget
impl Send for DailyTarget
impl Sync for DailyTarget
impl Unpin for DailyTarget
impl UnsafeUnpin for DailyTarget
impl UnwindSafe for DailyTarget
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