Split up types
This commit is contained in:
parent
127ccfb26b
commit
293053134f
5 changed files with 151 additions and 135 deletions
22
src/types/mod.rs
Normal file
22
src/types/mod.rs
Normal 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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue