diff options
author | iximeow <me@iximeow.net> | 2023-07-02 14:23:35 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2023-07-02 14:23:35 -0700 |
commit | 973876b035805ddc14e39165c643dcf417fbc6ca (patch) | |
tree | 272c09c38daaaf2bdc65e557a7e11b41b90e7898 | |
parent | 2014c6e3e0ab549aabad481d2771a20da19f9ac0 (diff) |
do not overload the tag "kind"
task_info kind overwrites the containing clientproto kind
-rw-r--r-- | src/protocol.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol.rs b/src/protocol.rs index 829dde1..78c7303 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -14,7 +14,7 @@ pub enum ClientProto { } #[derive(Serialize, Deserialize, Debug)] -#[serde(tag = "kind")] +#[serde(tag = "command_info")] #[serde(rename_all = "snake_case")] pub enum CommandInfo { Started { command: Vec<String>, cwd: Option<String>, id: u32 }, @@ -22,7 +22,7 @@ pub enum CommandInfo { } #[derive(Serialize, Deserialize, Debug)] -#[serde(tag = "kind")] +#[serde(tag = "task_info")] #[serde(rename_all = "snake_case")] pub enum TaskInfo { Finished { status: String }, |