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

Method new

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

Source from the content-addressed store, hash-verified

16
17impl Question {
18 fn new(id: QuestionId, title: String, content: String, tags: Option<Vec<String>>) -> Self {
19 Question {
20 id,
21 title,
22 content,
23 tags,
24 }
25 }
26}
27
28impl FromStr for QuestionId {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected