aboutsummaryrefslogtreecommitdiff
path: root/lockchain-http/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lockchain-http/src/state.rs')
-rw-r--r--lockchain-http/src/state.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/lockchain-http/src/state.rs b/lockchain-http/src/state.rs
index 650660f..5cfc8ad 100644
--- a/lockchain-http/src/state.rs
+++ b/lockchain-http/src/state.rs
@@ -1,6 +1,6 @@
use lockchain::traits::{AutoEncoder, Body, FileIO, Vault};
-use std::collections::HashMap;
+use std::collections::{HashMap, HashSet};
use std::marker::PhantomData;
use std::path::PathBuf;
@@ -34,7 +34,8 @@ where
pub vaults: HashMap<String, Option<V>>,
#[doc(hidden)]
pub _phantom: PhantomData<B>,
-
+ #[doc(hidden)]
+ pub tokens: HashSet<String>,
/// Signal if the API handlers are allowed outside their working dir
pub bound_scope: bool,
/// Provide a working directory
@@ -87,6 +88,7 @@ where
_phantom: PhantomData,
bound_scope: true,
vaults: HashMap::new(),
+ tokens: HashSet::new(),
administrative: false,
..Default::default()
}