From 7f31a5bca06dccdd4edaed6699bc6e6f479a2b27 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 19:30:05 +0000 Subject: store: a fold names itself A swarm holding a store names its fold in its policy, `{"version": 2, "store": ""}`: the fold's name is a constant of the fold, `federation` for the federation and `test` for the fold made for the store's tests. --- src/federation/store/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/federation/store/mod.rs') diff --git a/src/federation/store/mod.rs b/src/federation/store/mod.rs index ad1720d..ec3fb56 100644 --- a/src/federation/store/mod.rs +++ b/src/federation/store/mod.rs @@ -72,6 +72,10 @@ pub(crate) trait Fold { /// reading need of the events' history. type State: Clone; + /// Its name, by which a swarm holding a store names its fold (`docs/store.md`, On + /// Automerge). + const NAME: &'static str; + /// The most bytes an event may have: larger ones are none. const LARGEST: usize; -- cgit v1.3.1