unb-core 2.0.3

Core unb protocol types: envelope, session, routing, taxonomy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::collections::BTreeMap;

use serde_json::Value;

#[derive(Clone, Debug, Default, PartialEq)]
pub struct CoreCapabilitySnapshot {
    entries: BTreeMap<String, Value>,
}

impl CoreCapabilitySnapshot {
    pub fn new(entries: BTreeMap<String, Value>) -> Self {
        Self { entries }
    }

    pub fn entries(&self) -> &BTreeMap<String, Value> {
        &self.entries
    }
}