From 48edd68d84f6e783f420d5ab33673147bae5c2c2 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Tue, 26 Nov 2024 21:02:08 +0200 Subject: [PATCH] remove renames --- src/api_params.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/api_params.rs b/src/api_params.rs index 2f292c8..44a8524 100644 --- a/src/api_params.rs +++ b/src/api_params.rs @@ -54,31 +54,18 @@ impl From for FileUpload { #[derive(Clone, Debug, Serialize, Deserialize, PartialEq)] #[serde(tag = "type", rename_all = "snake_case")] pub enum InlineQueryResult { - #[serde(rename = "audio")] Audio(MaybeCached), - #[serde(rename = "document")] Document(MaybeCached), - #[serde(rename = "gif")] Gif(MaybeCached), - #[serde(rename = "mpeg4_gif")] Mpeg4Gif(MaybeCached), - #[serde(rename = "photo")] Photo(MaybeCached), - #[serde(rename = "sticker")] Sticker(InlineQueryResultCachedSticker), - #[serde(rename = "video")] Video(MaybeCached), - #[serde(rename = "voice")] Voice(MaybeCached), - #[serde(rename = "article")] Article(InlineQueryResultArticle), - #[serde(rename = "contract")] Contact(InlineQueryResultContact), - #[serde(rename = "game")] Game(InlineQueryResultGame), - #[serde(rename = "location")] Location(InlineQueryResultLocation), - #[serde(rename = "venue")] Venue(InlineQueryResultVenue), }