pub struct Goals {
pub calories: Vec<f64>,
pub protein: Vec<f64>,
pub carbs: Vec<f64>,
pub fat: Vec<f64>,
pub tdee: Option<f64>,
pub program_style: Option<String>,
pub program_type: Option<String>,
}Expand description
Daily macro/calorie goals from the planner.
Fields§
§calories: Vec<f64>Daily calorie targets per day of week (Mon=0..Sun=6)
protein: Vec<f64>Daily protein targets (g) per day of week
carbs: Vec<f64>Daily carbs targets (g) per day of week
fat: Vec<f64>Daily fat targets (g) per day of week
tdee: Option<f64>Current TDEE estimate
program_style: Option<String>Program style (e.g. “coached”)
program_type: Option<String>Program type (e.g. “performance”)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Goals
impl<'de> Deserialize<'de> for Goals
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 Goals
impl RefUnwindSafe for Goals
impl Send for Goals
impl Sync for Goals
impl Unpin for Goals
impl UnsafeUnpin for Goals
impl UnwindSafe for Goals
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