diff options
author | Katharina Fey <kookie@spacekookie.de> | 2018-07-10 20:47:13 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2018-07-10 20:47:13 +0200 |
commit | e1e9c73476ba2792c3582ee7ecd14d0b39c3eef4 (patch) | |
tree | 39237e46485669260da5038cb011d8382f879a7a /lockchain-core/src/traits.rs | |
parent | 7dfaacb94c8e4a37fb68fcaa7435c8cc8a08e7f9 (diff) |
Adding an example of how to register a user and adding new metadata
vault endpoints functions
Diffstat (limited to 'lockchain-core/src/traits.rs')
-rw-r--r-- | lockchain-core/src/traits.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lockchain-core/src/traits.rs b/lockchain-core/src/traits.rs index 4e66d8f..088ee84 100644 --- a/lockchain-core/src/traits.rs +++ b/lockchain-core/src/traits.rs @@ -148,6 +148,8 @@ where fn meta_set(&mut self, domain: &str, name: &str, data: Payload) -> Option<()>; /// Get the value of a (unique) field inside a domain fn meta_get(&mut self, domain: &str, name: &str) -> Option<Payload>; + /// Check if a metadomain exists, regardless of data or depth + fn meta_exists(&self, domain: &str) -> bool; } /// Auto-implement this trait to serialise types to json |