smart-fridge 2.0.0

A tiny service to manage food in your fridge
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Module that represent [`Food`] in a fridge.
use chrono::NaiveDate;
use sqlx::types::Uuid;

/// Food struct that represent a row in the database.
#[derive(Debug, sqlx::FromRow, serde::Serialize, serde::Deserialize, impl_new::New)]
pub struct Food {
    pub(crate) id: Uuid,
    pub(crate) name: String,
    pub(crate) expiration_date: NaiveDate,
}