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

Enum TodoCommand

src/todo/core.rs:6–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5#[derive(Debug, Clone, Subcommand)]
6pub enum TodoCommand {
7 /// Create a new todo item
8 Create {
9 #[arg(short, long)]
10 title: Option<String>,
11 #[arg(short, long)]
12 content: Option<String>,
13 },
14 /// List all todo items
15 List {
16 #[arg(short, long)]
17 title: Option<String>,
18 #[arg(short, long)]
19 content: Option<String>,
20 },
21}
22
23#[derive(Deserialize, Serialize)]
24pub struct TodoItem {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected