Enum telegram_bot_api::types::MenuButton
source · [−]pub enum MenuButton {
MenuButtonCommands(MenuButtonCommands),
MenuButtonWebApp(MenuButtonWebApp),
MenuButtonDefault(MenuButtonDefault),
}
Expand description
This object describes the bot’s menu button in a private chat. It should be one of
MenuButtonCommands
MenuButtonWebApp
MenuButtonDefault
If a menu button other than MenuButtonDefault is set for a private chat, then it is applied in the chat. Otherwise the default menu button is applied. By default, the menu button opens the list of bot commands.
Variants
MenuButtonCommands(MenuButtonCommands)
MenuButtonWebApp(MenuButtonWebApp)
MenuButtonDefault(MenuButtonDefault)
Trait Implementations
sourceimpl Clone for MenuButton
impl Clone for MenuButton
sourcefn clone(&self) -> MenuButton
fn clone(&self) -> MenuButton
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MenuButton
impl Debug for MenuButton
sourceimpl<'de> Deserialize<'de> for MenuButton
impl<'de> Deserialize<'de> for MenuButton
sourcefn 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
sourceimpl Serialize for MenuButton
impl Serialize for MenuButton
Auto Trait Implementations
impl RefUnwindSafe for MenuButton
impl Send for MenuButton
impl Sync for MenuButton
impl Unpin for MenuButton
impl UnwindSafe for MenuButton
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