mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 09:49:07 +01:00
add serde tags to optional fields
This commit is contained in:
parent
eada897471
commit
1c40479f87
1 changed files with 4 additions and 0 deletions
|
@ -18,15 +18,19 @@ struct StopMessageLiveLocation<'a> {
|
||||||
/// Required if inline_message_id is not specified. Unique identifier for
|
/// Required if inline_message_id is not specified. Unique identifier for
|
||||||
/// the target chat or username of the target channel (in the format
|
/// the target chat or username of the target channel (in the format
|
||||||
/// @channelusername)
|
/// @channelusername)
|
||||||
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
chat_id: Option<ChatId>,
|
chat_id: Option<ChatId>,
|
||||||
/// Required if inline_message_id is not specified. Identifier of the
|
/// Required if inline_message_id is not specified. Identifier of the
|
||||||
/// message with live location to stop
|
/// message with live location to stop
|
||||||
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
message_id: Option<i32>,
|
message_id: Option<i32>,
|
||||||
/// Required if chat_id and message_id are not specified. Identifier of the
|
/// Required if chat_id and message_id are not specified. Identifier of the
|
||||||
/// inline message
|
/// inline message
|
||||||
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
inline_message_id: Option<String>,
|
inline_message_id: Option<String>,
|
||||||
/// A JSON-serialized object InlineKeyboardMarkup for a new inline
|
/// A JSON-serialized object InlineKeyboardMarkup for a new inline
|
||||||
/// keyboard.
|
/// keyboard.
|
||||||
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
reply_markup: Option<InlineKeyboardMarkup>,
|
reply_markup: Option<InlineKeyboardMarkup>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue