MCPcopy Create free account
hub / github.com/InkSha/rust-tutorial / new

Method new

src/todo/core.rs:37–39  ·  view source on GitHub ↗
(title: &str, content: &str)

Source from the content-addressed store, hash-verified

35
36impl TodoItem {
37 pub fn new(title: &str, content: &str) -> Self {
38 create_todo_item(title, content)
39 }
40
41 // pub fn serializer(&self) -> String {
42 // serde_json::to_string(self).unwrap()

Callers

nothing calls this directly

Calls 1

create_todo_itemFunction · 0.85

Tested by

no test coverage detected