Struct botapi::gen_types::MenuButtonCommands
source · pub struct MenuButtonCommands { /* private fields */ }Expand description
Represents a menu button, which opens the bot’s list of commands.
Implementations§
source§impl MenuButtonCommands
impl MenuButtonCommands
pub fn noskip(self) -> NoSkipMenuButtonCommands
source§impl MenuButtonCommands
impl MenuButtonCommands
pub fn new() -> Self
sourcepub fn get_tg_type<'a>(&'a self) -> &'a str
pub fn get_tg_type<'a>(&'a self) -> &'a str
Type of the button, must be commands
Trait Implementations§
source§impl Clone for MenuButtonCommands
impl Clone for MenuButtonCommands
source§fn clone(&self) -> MenuButtonCommands
fn clone(&self) -> MenuButtonCommands
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MenuButtonCommands
impl Debug for MenuButtonCommands
source§impl Default for MenuButtonCommands
impl Default for MenuButtonCommands
source§fn default() -> MenuButtonCommands
fn default() -> MenuButtonCommands
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MenuButtonCommands
impl<'de> Deserialize<'de> for MenuButtonCommands
source§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
source§impl From<NoSkipMenuButtonCommands> for MenuButtonCommands
impl From<NoSkipMenuButtonCommands> for MenuButtonCommands
source§fn from(t: NoSkipMenuButtonCommands) -> Self
fn from(t: NoSkipMenuButtonCommands) -> Self
Converts to this type from the input type.
source§impl Into<NoSkipMenuButtonCommands> for MenuButtonCommands
impl Into<NoSkipMenuButtonCommands> for MenuButtonCommands
source§fn into(self) -> NoSkipMenuButtonCommands
fn into(self) -> NoSkipMenuButtonCommands
Converts this type into the (usually inferred) input type.