Split up types

This commit is contained in:
Bianca Fürstenau 2025-03-07 01:41:31 +01:00
parent 127ccfb26b
commit 293053134f
5 changed files with 151 additions and 135 deletions

22
src/types/mod.rs Normal file
View file

@ -0,0 +1,22 @@
use serde::{Deserialize, Serialize};
mod store;
mod account;
mod cash;
pub use store::Store;
pub use account::Account;
pub use cash::Cash;
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Inventory {
pub acc: Account,
pub cash: Cash,
pub vouchers: Vec<VoucherInventory>,
}
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
pub struct VoucherInventory {
pub store: Store,
pub count: i64,
}