From 196e4ffdb8d5631cc7961e8d3de30330b3606488 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Thu, 25 Mar 2021 17:45:41 -0400 Subject: [PATCH] add manifest and manifest entry types --- src/accountmanager.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/accountmanager.rs diff --git a/src/accountmanager.rs b/src/accountmanager.rs new file mode 100644 index 0000000..60466eb --- /dev/null +++ b/src/accountmanager.rs @@ -0,0 +1,26 @@ +use serde::{Serialize, Deserialize}; + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct Manifest { + pub encrypted: bool, + pub entries: Vec, + pub first_run: bool, + pub periodic_checking: bool, + pub periodic_checking_interval: i32, + pub periodic_checking_checkall: bool, + pub auto_confirm_market_transactions: bool, + pub auto_confirm_trades: bool, + + #[serde(skip)] + pub accounts: Vec +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct ManifestEntry { + pub encryption_iv: String, + pub encryption_salt: String, + pub filename: String, + pub steam_id: u64, +} + +