Skip to content

Commit

Permalink
Remove into from Vec params
Browse files Browse the repository at this point in the history
  • Loading branch information
Veetaha committed Sep 1, 2024
1 parent dc52a75 commit 276cbbc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 62 deletions.
24 changes: 0 additions & 24 deletions src/api_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ pub struct GetUpdatesParams {
pub timeout: Option<u32>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub allowed_updates: Option<Vec<AllowedUpdate>>,
}

Expand All @@ -259,7 +258,6 @@ pub struct SetWebhookParams {
pub max_connections: Option<u32>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub allowed_updates: Option<Vec<AllowedUpdate>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -298,7 +296,6 @@ pub struct SendMessageParams {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -389,7 +386,6 @@ pub struct CopyMessageParams {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -459,7 +455,6 @@ pub struct SendPhotoParams {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -512,7 +507,6 @@ pub struct SendAudioParams {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -578,7 +572,6 @@ pub struct SendDocumentParams {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -641,7 +634,6 @@ pub struct SendVideoParams {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -710,7 +702,6 @@ pub struct SendAnimationParams {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -763,7 +754,6 @@ pub struct SendVoiceParams {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -856,7 +846,6 @@ pub struct SendPaidMediaParams {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -1142,7 +1131,6 @@ pub struct SendPollParams {
pub question_parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub question_entities: Option<Vec<MessageEntity>>,

pub options: Vec<InputPollOption>,
Expand All @@ -1169,7 +1157,6 @@ pub struct SendPollParams {
pub explanation_parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub explanation_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -1929,7 +1916,6 @@ pub struct EditMessageTextParams {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -1968,7 +1954,6 @@ pub struct EditMessageCaptionParams {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -2143,7 +2128,6 @@ pub struct CreateNewStickerSetParams {
#[builder]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub struct GetCustomEmojiStickersParams {
#[builder(into)]
pub custom_emoji_ids: Vec<String>,
}

Expand Down Expand Up @@ -2204,7 +2188,6 @@ pub struct SetStickerKeywordsParams {
pub sticker: String,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub keywords: Option<Vec<String>>,
}

Expand Down Expand Up @@ -2469,7 +2452,6 @@ pub struct AnswerShippingQueryParams {
pub ok: bool,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub shipping_options: Option<Vec<ShippingOption>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -2603,7 +2585,6 @@ pub struct InputMediaPhoto {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -2632,7 +2613,6 @@ pub struct InputMediaVideo {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -2673,7 +2653,6 @@ pub struct InputMediaAnimation {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -2711,7 +2690,6 @@ pub struct InputMediaAudio {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -2745,7 +2723,6 @@ pub struct InputMediaDocument {
pub parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub caption_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -2822,7 +2799,6 @@ pub struct ReplyParameters {
pub quote_parse_mode: Option<ParseMode>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(into)]
pub quote_entities: Option<Vec<MessageEntity>>,

#[serde(skip_serializing_if = "Option::is_none")]
Expand Down
Loading

0 comments on commit 276cbbc

Please sign in to comment.