From 3c46562b75be166b9919130f24ed6a6d7c48da88 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Sat, 30 Dec 2023 15:47:30 +0200 Subject: [PATCH] remove type fields --- src/objects.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/objects.rs b/src/objects.rs index fdfaae9..65cdef7 100644 --- a/src/objects.rs +++ b/src/objects.rs @@ -1739,20 +1739,12 @@ pub enum ReactionType { #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Builder, Eq)] pub struct ReactionTypeEmoji { - #[builder(setter(into))] - #[serde(rename = "type")] - pub type_field: String, - #[builder(setter(into))] pub emoji: String, } #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Builder, Eq)] pub struct ReactionTypeCustomEmoji { - #[builder(setter(into))] - #[serde(rename = "type")] - pub type_field: String, - #[builder(setter(into))] pub custom_emoji: String, }