Add a serde tag to ParsedItem (#2546)
This commit is contained in:
parent
dacff9675a
commit
74683bab91
1 changed files with 1 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ use serde::Deserialize;
|
|||
use serde::Serialize;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)]
|
||||
#[serde(tag = "type", rename_all = "snake_case")]
|
||||
pub enum ParsedCommand {
|
||||
Read {
|
||||
cmd: String,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue