diff --git a/src/api_params.rs b/src/api_params.rs index 12790fe..e0dc506 100644 --- a/src/api_params.rs +++ b/src/api_params.rs @@ -247,7 +247,6 @@ pub struct SetWebhookParams { pub url: String, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub certificate: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -292,14 +291,12 @@ pub struct SendMessageParams { pub text: String, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] pub entities: Option>, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub link_preview_options: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -313,11 +310,9 @@ pub struct SendMessageParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -382,7 +377,6 @@ pub struct CopyMessageParams { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -398,11 +392,9 @@ pub struct CopyMessageParams { pub protect_content: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -451,7 +443,6 @@ pub struct SendPhotoParams { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -474,11 +465,9 @@ pub struct SendPhotoParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -503,7 +492,6 @@ pub struct SendAudioParams { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -535,11 +523,9 @@ pub struct SendAudioParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -568,7 +554,6 @@ pub struct SendDocumentParams { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -588,11 +573,9 @@ pub struct SendDocumentParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -630,7 +613,6 @@ pub struct SendVideoParams { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -656,11 +638,9 @@ pub struct SendVideoParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -698,7 +678,6 @@ pub struct SendAnimationParams { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -721,11 +700,9 @@ pub struct SendAnimationParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -750,7 +727,6 @@ pub struct SendVoiceParams { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -770,11 +746,9 @@ pub struct SendVoiceParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -815,11 +789,9 @@ pub struct SendVideoNoteParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -842,7 +814,6 @@ pub struct SendPaidMediaParams { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -858,11 +829,9 @@ pub struct SendPaidMediaParams { pub protect_content: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -892,7 +861,6 @@ pub struct SendMediaGroupParams { pub protect_content: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, } @@ -936,11 +904,9 @@ pub struct SendLocationParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -979,7 +945,6 @@ pub struct EditMessageLiveLocationParams { pub proximity_alert_radius: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -1002,7 +967,6 @@ pub struct StopMessageLiveLocationParams { pub inline_message_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -1056,11 +1020,9 @@ pub struct SendVenueParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -1102,11 +1064,9 @@ pub struct SendContactParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -1127,7 +1087,6 @@ pub struct SendPollParams { pub question: String, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub question_parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -1139,7 +1098,6 @@ pub struct SendPollParams { pub is_anonymous: Option, #[serde(rename = "type")] #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub type_field: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -1153,7 +1111,6 @@ pub struct SendPollParams { pub explanation: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub explanation_parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -1179,11 +1136,9 @@ pub struct SendPollParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -1215,11 +1170,9 @@ pub struct SendDiceParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -1798,7 +1751,6 @@ pub struct SetMyCommandsParams { pub commands: Vec, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub scope: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -1870,7 +1822,6 @@ pub struct GetMyShortDescriptionParams { #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] pub struct GetMyCommandsParams { #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub scope: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -1882,7 +1833,6 @@ pub struct GetMyCommandsParams { #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] pub struct DeleteMyCommandsParams { #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub scope: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -1912,18 +1862,15 @@ pub struct EditMessageTextParams { pub text: String, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] pub entities: Option>, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub link_preview_options: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -1950,7 +1897,6 @@ pub struct EditMessageCaptionParams { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -1960,7 +1906,6 @@ pub struct EditMessageCaptionParams { pub show_caption_above_media: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -1982,11 +1927,9 @@ pub struct EditMessageMediaParams { #[builder(into)] pub inline_message_id: Option, - #[builder(into)] pub media: InputMedia, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -2009,7 +1952,6 @@ pub struct EditMessageReplyMarkupParams { pub inline_message_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -2026,7 +1968,6 @@ pub struct StopPollParams { pub message_id: i32, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -2079,11 +2020,9 @@ pub struct SendStickerParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -2118,7 +2057,6 @@ pub struct CreateNewStickerSetParams { pub stickers: Vec, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub sticker_type: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -2198,7 +2136,6 @@ pub struct SetStickerMaskPositionParams { pub sticker: String, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub mask_position: Option, } @@ -2264,7 +2201,6 @@ pub struct AnswerInlineQueryParams { pub next_offset: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub button: Option, } @@ -2275,7 +2211,6 @@ pub struct InlineQueryResultsButton { pub text: String, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub web_app: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -2369,11 +2304,9 @@ pub struct SendInvoiceParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -2522,11 +2455,9 @@ pub struct SendGameParams { pub message_effect_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_parameters: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub reply_markup: Option, } @@ -2581,7 +2512,6 @@ pub struct InputMediaPhoto { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -2609,7 +2539,6 @@ pub struct InputMediaVideo { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -2649,7 +2578,6 @@ pub struct InputMediaAnimation { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -2686,7 +2614,6 @@ pub struct InputMediaAudio { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -2719,7 +2646,6 @@ pub struct InputMediaDocument { pub caption: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -2760,7 +2686,6 @@ pub struct SetChatMenuButtonParams { pub chat_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub menu_button: Option, } @@ -2795,7 +2720,6 @@ pub struct ReplyParameters { pub quote: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub quote_parse_mode: Option, #[serde(skip_serializing_if = "Option::is_none")] diff --git a/src/objects.rs b/src/objects.rs index f6c26ce..1ab7b86 100644 --- a/src/objects.rs +++ b/src/objects.rs @@ -549,26 +549,21 @@ pub struct ChatFullInfo { pub is_forum: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub photo: Option, #[serde(skip_serializing_if = "Option::is_none")] pub active_usernames: Option>, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub birthdate: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub business_intro: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub business_location: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub business_opening_hours: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -631,7 +626,6 @@ pub struct ChatFullInfo { pub pinned_message: Option>, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub permissions: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -673,7 +667,6 @@ pub struct ChatFullInfo { pub linked_chat_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub location: Option, } @@ -764,7 +757,6 @@ pub struct Message { pub entities: Option>, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub link_preview_options: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -912,7 +904,6 @@ pub struct Message { pub connected_website: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub write_access_allowed: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -956,19 +947,15 @@ pub struct Message { pub general_forum_topic_unhidden: Option>, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub giveaway_created: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub giveaway: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub giveaway_winners: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub giveaway_completed: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -1017,7 +1004,6 @@ pub struct MessageEntity { pub url: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub user: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -1048,96 +1034,75 @@ pub struct TextQuote { #[derive(Clone, Debug, Serialize, Deserialize, PartialEq)] pub struct ExternalReplyInfo { #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub origin: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub chat: Option, #[serde(skip_serializing_if = "Option::is_none")] pub message_id: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub link_preview_options: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub animation: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[builder(into)] pub audio: Option