aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/src/traits.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lockchain-core/src/traits.rs')
-rw-r--r--lockchain-core/src/traits.rs2
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