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

Method new

ch_03/src/main.rs:27–34  ·  view source on GitHub ↗
(id: QuestionId, title: String, content: String, tags: Option<Vec<String>>)

Source from the content-addressed store, hash-verified

25
26impl Question {
27 fn new(id: QuestionId, title: String, content: String, tags: Option<Vec<String>>) -> Self {
28 Question {
29 id,
30 title,
31 content,
32 tags,
33 }
34 }
35}
36
37impl FromStr for QuestionId {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected