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

Class Question

ch_04/ch_04-s4.1.2/src/main.rs:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43#[derive(Clone, Debug, Deserialize, Serialize)]
44struct Question {
45 id: QuestionId,
46 title: String,
47 content: String,
48 tags: Option<Vec<String>>,
49}
50
51#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Hash)]
52struct QuestionId(String);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected