mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +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
|
||||
/// the target chat or username of the target channel (in the format
|
||||
/// @channelusername)
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
chat_id: Option<ChatId>,
|
||||
/// Required if inline_message_id is not specified. Identifier of the
|
||||
/// message with live location to stop
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
message_id: Option<i32>,
|
||||
/// Required if chat_id and message_id are not specified. Identifier of the
|
||||
/// inline message
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
inline_message_id: Option<String>,
|
||||
/// A JSON-serialized object InlineKeyboardMarkup for a new inline
|
||||
/// keyboard.
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
reply_markup: Option<InlineKeyboardMarkup>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue