diff options
Diffstat (limited to 'src/data.rs')
-rw-r--r-- | src/data.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/data.rs b/src/data.rs index e26a38f0..68f81240 100644 --- a/src/data.rs +++ b/src/data.rs @@ -1,9 +1,23 @@ +use std::collections::HashMap; use serde::{Serialize, Deserialize}; pub type UUID = [u8; 32]; pub type Hash = [u8; 32]; +// Network management + +#[derive(Clone, Debug, Serialize, Deserialize)] +pub struct NetworkConfig { + pub members: HashMap<UUID, NetworkConfigEntry>, + pub version: u64, +} + +#[derive(Clone, Debug, Serialize, Deserialize)] +pub struct NetworkConfigEntry { + pub n_tokens: u32, +} + // Data management #[derive(Debug, Serialize, Deserialize)] |