Struct frankenstein::objects::InlineKeyboardButton [−][src]
pub struct InlineKeyboardButton {
pub text: String,
pub url: Option<String>,
pub login_url: Option<LoginUrl>,
pub callback_data: Option<String>,
pub switch_inline_query: Option<String>,
pub switch_inline_query_current_chat: Option<String>,
pub callback_game: Option<CallbackGame>,
pub pay: Option<bool>,
}
Fields
text: String
url: Option<String>
login_url: Option<LoginUrl>
callback_data: Option<String>
switch_inline_query: Option<String>
switch_inline_query_current_chat: Option<String>
callback_game: Option<CallbackGame>
pay: Option<bool>
Implementations
pub fn set_switch_inline_query_current_chat(
&mut self,
switch_inline_query_current_chat: Option<String>
)
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for InlineKeyboardButton
impl Send for InlineKeyboardButton
impl Sync for InlineKeyboardButton
impl Unpin for InlineKeyboardButton
impl UnwindSafe for InlineKeyboardButton
Blanket Implementations
Mutably borrows from an owned value. Read more