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

Method add_question

ch_04/ch_04-s4.1.2/src/main.rs:37–40  ·  view source on GitHub ↗
(mut self, question: Question)

Source from the content-addressed store, hash-verified

35
36
37 fn add_question(mut self, question: Question) -> Self {
38 self.questions.insert(question.id.clone(), question);
39 self
40 }
41}
42
43#[derive(Clone, Debug, Deserialize, Serialize)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected