Struct telegram_api_rs::objects::InlineKeyboardButton
source · 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 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>
§pay: Option<bool>
Implementations§
source§impl InlineKeyboardButton
impl InlineKeyboardButton
pub fn from_json(data: JsonValue) -> InlineKeyboardButton
pub fn to_json(&self) -> JsonValue
pub fn empty() -> InlineKeyboardButton
Trait Implementations§
source§impl Clone for InlineKeyboardButton
impl Clone for InlineKeyboardButton
source§impl Display for InlineKeyboardButton
impl Display for InlineKeyboardButton
source§impl From<InlineKeyboardButton> for JsonValue
impl From<InlineKeyboardButton> for JsonValue
source§fn from(u: InlineKeyboardButton) -> Self
fn from(u: InlineKeyboardButton) -> Self
Converts to this type from the input type.
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more