diff options
author | Colin Reeder <vpzomtrrfrt@gmail.com> | 2020-12-19 13:57:53 -0700 |
---|---|---|
committer | Colin Reeder <vpzomtrrfrt@gmail.com> | 2020-12-19 13:57:53 -0700 |
commit | 740e8e7107e0971796d1d903d445c6db76fcf92c (patch) | |
tree | 309c47bf4d19276d6277c8491d6cdd4e5149c6dd | |
parent | 38ef280da222eb7a7b08380127f1078c785128ec (diff) |
Fix ThingLocalRef serialization
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 592bd36..b149e19 100644 --- a/src/main.rs +++ b/src/main.rs @@ -340,7 +340,8 @@ pub enum ActorLocalRef { } #[derive(Clone, Copy, Debug, Serialize)] -#[serde(tag = "type")] +#[serde(tag = "type", content = "id")] +#[serde(rename_all = "snake_case")] pub enum ThingLocalRef { Post(PostLocalID), Comment(CommentLocalID), |