pub struct DietEntry {
pub id: String,
pub description: String,
pub meal_type: String,
pub calories_kcal: Option<u32>,
pub logged_at_unix: u32,
pub logged_at_instant: Option<InstantBridge>,
}Fields§
§id: String§description: String§meal_type: String§calories_kcal: Option<u32>§logged_at_unix: u32§logged_at_instant: Option<InstantBridge>High-resolution instant (T71 bridge). Preferred over logged_at_unix
when present; the u32 field is kept for backward-compatible deserialization.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DietEntry
impl<'de> Deserialize<'de> for DietEntry
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
impl StructuralPartialEq for DietEntry
Auto Trait Implementations§
impl Freeze for DietEntry
impl RefUnwindSafe for DietEntry
impl Send for DietEntry
impl Sync for DietEntry
impl Unpin for DietEntry
impl UnsafeUnpin for DietEntry
impl UnwindSafe for DietEntry
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