MCPcopy Create free account
hub / github.com/Rust-Web-Development/code / Store

Class Store

ch_06/src/store.rs:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10#[derive(Debug, Clone)]
11pub struct Store {
12 pub questions: Arc<RwLock<HashMap<QuestionId, Question>>>,
13 pub answers: Arc<RwLock<HashMap<AnswerId, Answer>>>,
14}
15
16impl Store {
17 pub fn new() -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected