Skip to content

Commit 0314eee

Browse files
committed
improve serde representation
1 parent a68e291 commit 0314eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/enums/operator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use serde::{Deserialize, Serialize};
22

33
#[derive(PartialEq, Copy, Clone, Debug, Serialize, Deserialize)]
4-
#[serde(rename_all = "snake_case")]
4+
#[serde(rename_all = "snake_case", tag = "value")]
55
pub enum Operator {
66
And,
77
Or,

0 commit comments

Comments
 (0)