Skip to main content

unb_core/
capability.rs

1use std::collections::BTreeMap;
2
3use serde_json::Value;
4
5#[derive(Clone, Debug, Default, PartialEq)]
6pub struct CoreCapabilitySnapshot {
7    entries: BTreeMap<String, Value>,
8}
9
10impl CoreCapabilitySnapshot {
11    pub fn new(entries: BTreeMap<String, Value>) -> Self {
12        Self { entries }
13    }
14
15    pub fn entries(&self) -> &BTreeMap<String, Value> {
16        &self.entries
17    }
18}