[−][src]Enum tbot::types::message::inline_markup::ButtonKind
Represents different types an inline button can be.
Complete descriptions can be found in Bots API docs.
Variants
Url(String)
Represents a URL button.
CallbackData(String)
Represents callback data.
SwitchInlineQuery(String)
Represents query inserted when switched to inline.
SwitchInlineQueryCurrentChat(String)
Represents query inserted when switched to inline in the curent chat.
CallbackGame(Game)
Represent a description of the game to be laucnhed.
Pay(bool)
if true
, a pay button.
Methods
impl ButtonKind
[src]
pub fn is_url(&self) -> bool
[src]
Checks if self
is Url
.
pub fn is_callback_data(&self) -> bool
[src]
Checks if self
is CallbackData
.
pub fn is_switch_inline_query(&self) -> bool
[src]
Checks if self
is SwitchInlineQuery
.
pub fn is_switch_inline_query_current_chat(&self) -> bool
[src]
Checks if self
is SwitchInlineQueryCurrentChat
.
pub fn is_callback_game(&self) -> bool
[src]
Checks if self
is CallbackGame
.
pub fn is_pay(&self) -> bool
[src]
Checks if self
is Pay
.
Trait Implementations
impl PartialEq<ButtonKind> for ButtonKind
[src]
fn eq(&self, other: &ButtonKind) -> bool
[src]
fn ne(&self, other: &ButtonKind) -> bool
[src]
impl Clone for ButtonKind
[src]
fn clone(&self) -> ButtonKind
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for ButtonKind
[src]
impl Debug for ButtonKind
[src]
impl Hash for ButtonKind
[src]
Auto Trait Implementations
impl Unpin for ButtonKind
impl Sync for ButtonKind
impl Send for ButtonKind
impl RefUnwindSafe for ButtonKind
impl UnwindSafe for ButtonKind
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,