Fix type of parse_mode (String -> ParseMode)

This commit is contained in:
Waffle 2019-09-19 00:27:05 +03:00
parent 0896c59c84
commit 685d19dc34
12 changed files with 24 additions and 24 deletions

View file

@ -1,11 +1,11 @@
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup, ParseMode};
#[derive(Debug, Serialize, PartialEq, Clone)]
pub struct InlineQueryResultCachedAudio {
pub id: String,
pub audio_file_id: String,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub parse_mode: Option<ParseMode>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}

View file

@ -1,4 +1,4 @@
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup, ParseMode};
#[derive(Debug, Serialize, PartialEq, Clone)]
pub struct InlineQueryResultCachedDocument {
@ -7,7 +7,7 @@ pub struct InlineQueryResultCachedDocument {
pub document_file_id: String,
pub description: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub parse_mode: Option<ParseMode>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}

View file

@ -1,4 +1,4 @@
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup, ParseMode};
#[derive(Debug, Serialize, PartialEq, Clone)]
pub struct InlineQueryResultCachedGif {
@ -6,7 +6,7 @@ pub struct InlineQueryResultCachedGif {
pub gif_file_id: String,
pub title: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub parse_mode: Option<ParseMode>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}

View file

@ -1,4 +1,4 @@
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup, ParseMode};
#[derive(Debug, Serialize, PartialEq, Clone)]
pub struct InlineQueryResultCachedMpeg4Gif {
@ -6,7 +6,7 @@ pub struct InlineQueryResultCachedMpeg4Gif {
pub mpeg4_file_id: String,
pub title: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub parse_mode: Option<ParseMode>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}

View file

@ -1,4 +1,4 @@
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup, ParseMode};
#[derive(Debug, Serialize, PartialEq, Clone)]
pub struct InlineQueryResultCachedVideo {
@ -7,7 +7,7 @@ pub struct InlineQueryResultCachedVideo {
pub title: String,
pub description: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub parse_mode: Option<ParseMode>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}

View file

@ -1,4 +1,4 @@
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup, ParseMode};
#[derive(Debug, Serialize, PartialEq, Clone)]
pub struct InlineQueryResultCachedVoice {
@ -6,7 +6,7 @@ pub struct InlineQueryResultCachedVoice {
pub voice_file_id: String,
pub title: String,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub parse_mode: Option<ParseMode>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}

View file

@ -1,11 +1,11 @@
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup, ParseMode};
#[derive(Debug, Serialize, PartialEq, Clone)]
pub struct InlineQueryResultDocument {
pub id: String,
pub title: String,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub parse_mode: Option<ParseMode>,
pub document_url: String,
pub mime_type: String,
pub description: Option<String>,

View file

@ -1,4 +1,4 @@
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup, ParseMode};
#[derive(Debug, Serialize, PartialEq, Clone)]
pub struct InlineQueryResultGif {
@ -10,7 +10,7 @@ pub struct InlineQueryResultGif {
pub thumb_url: String,
pub title: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub parse_mode: Option<ParseMode>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}

View file

@ -1,4 +1,4 @@
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup, ParseMode};
#[derive(Debug, Serialize, PartialEq, Clone)]
pub struct InlineQueryResultMpeg4Gif {
@ -10,7 +10,7 @@ pub struct InlineQueryResultMpeg4Gif {
pub thumb_url: String,
pub title: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub parse_mode: Option<ParseMode>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}

View file

@ -1,4 +1,4 @@
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup, ParseMode};
#[derive(Debug, Serialize, PartialEq, Clone)]
pub struct InlineQueryResultPhoto {
@ -10,7 +10,7 @@ pub struct InlineQueryResultPhoto {
pub title: Option<String>,
pub description: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub parse_mode: Option<ParseMode>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}

View file

@ -1,4 +1,4 @@
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup, ParseMode};
#[derive(Debug, Serialize, PartialEq, Clone)]
pub struct InlineQueryResultVideo {
@ -8,7 +8,7 @@ pub struct InlineQueryResultVideo {
pub thumb_url: String,
pub title: String,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub parse_mode: Option<ParseMode>,
pub video_width: Option<i32>,
pub video_height: Option<i32>,
pub video_duration: Option<i32>,

View file

@ -1,4 +1,4 @@
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup};
use crate::core::types::{InputMessageContent, InlineKeyboardMarkup, ParseMode};
#[derive(Debug, Serialize, PartialEq, Clone)]
pub struct InlineQueryResultVoice {
@ -6,7 +6,7 @@ pub struct InlineQueryResultVoice {
pub voice_url: String,
pub title: String,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub parse_mode: Option<ParseMode>,
pub voice_duration: Option<i32>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,