pub struct Food {Show 13 fields
pub id: i64,
pub uuid: String,
pub name: String,
pub brand: Option<String>,
pub barcode: Option<String>,
pub calories_per_100g: f64,
pub protein_per_100g: Option<f64>,
pub carbs_per_100g: Option<f64>,
pub fat_per_100g: Option<f64>,
pub default_serving_g: Option<f64>,
pub source: String,
pub created_at: String,
pub updated_at: String,
}Fields§
§id: i64§uuid: String§name: String§brand: Option<String>§barcode: Option<String>§calories_per_100g: f64§protein_per_100g: Option<f64>§carbs_per_100g: Option<f64>§fat_per_100g: Option<f64>§default_serving_g: Option<f64>§source: String§created_at: String§updated_at: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Food
impl<'de> Deserialize<'de> for Food
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 Food
impl RefUnwindSafe for Food
impl Send for Food
impl Sync for Food
impl Unpin for Food
impl UnsafeUnpin for Food
impl UnwindSafe for Food
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