aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/src/traits.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2018-06-12 01:24:27 +0200
committerKatharina Fey <kookie@spacekookie.de>2018-06-12 01:24:27 +0200
commit5e4a2c1df2aceef1ad736f6ddd9d3170711a8510 (patch)
tree36ed4a8b83ed2d6e061d2622e26420a30e8f6aa3 /lockchain-core/src/traits.rs
parent8cbd45f0af5fda64c409c9486b7a6d40814ef2d7 (diff)
Adding /api and /vault endpoints as first working routes ✨
Diffstat (limited to '')
-rw-r--r--lockchain-core/src/traits.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/lockchain-core/src/traits.rs b/lockchain-core/src/traits.rs
index 963d2c6..9ef2903 100644
--- a/lockchain-core/src/traits.rs
+++ b/lockchain-core/src/traits.rs
@@ -11,7 +11,7 @@
//! compilation work without external crates but not calling
//! functions at runtime.
-use meta::MetaDomain;
+use meta::{MetaDomain, VaultMetadata};
use record::{EncryptedBody, Header, Payload, Record};
use serde::{de::DeserializeOwned, Serialize};
@@ -88,6 +88,8 @@ where
{
/// A shared constructor for all vault implementations
fn new(name: &str, location: &str) -> Self;
+ /// Get basic vault metadata
+ fn metadata(&self) -> VaultMetadata;
/// Fetch metadata headers for all records
fn fetch(&mut self);
/// Pull a specific record from the backend