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
sourceimpl InlineKeyboardButton
impl InlineKeyboardButton
pub fn from_json(data: JsonValue) -> InlineKeyboardButton
pub fn to_json(&self) -> JsonValue
pub fn empty() -> InlineKeyboardButton
Trait Implementations
sourceimpl Clone for InlineKeyboardButton
impl Clone for InlineKeyboardButton
sourceimpl Display for InlineKeyboardButton
impl Display for InlineKeyboardButton
sourceimpl From<InlineKeyboardButton> for JsonValue
impl From<InlineKeyboardButton> for JsonValue
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more