Struct botapi::gen_types::MenuButtonCommands
source · pub struct MenuButtonCommands {
pub tg_type: String,
}
Expand description
Represents a menu button, which opens the bot’s list of commands.
Fields§
§tg_type: String
Type of the button, must be 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
sourcepub fn set_tg_type<'a>(&'a mut self, tg_type: String) -> &'a mut Self
pub fn set_tg_type<'a>(&'a mut self, tg_type: String) -> &'a mut Self
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<BoxWrapper<Box<MenuButtonCommands>>> for MenuButtonCommands
impl From<BoxWrapper<Box<MenuButtonCommands>>> for MenuButtonCommands
source§fn from(t: BoxWrapper<Box<MenuButtonCommands>>) -> Self
fn from(t: BoxWrapper<Box<MenuButtonCommands>>) -> Self
Converts to this type from the input type.
source§impl From<BoxWrapper<Unbox<MenuButtonCommands>>> for MenuButtonCommands
impl From<BoxWrapper<Unbox<MenuButtonCommands>>> for MenuButtonCommands
source§fn from(t: BoxWrapper<Unbox<MenuButtonCommands>>) -> Self
fn from(t: BoxWrapper<Unbox<MenuButtonCommands>>) -> Self
Converts to this type from the input type.
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 Hash for MenuButtonCommands
impl Hash for MenuButtonCommands
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.
source§impl Ord for MenuButtonCommands
impl Ord for MenuButtonCommands
source§fn cmp(&self, other: &MenuButtonCommands) -> Ordering
fn cmp(&self, other: &MenuButtonCommands) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MenuButtonCommands
impl PartialEq for MenuButtonCommands
source§fn eq(&self, other: &MenuButtonCommands) -> bool
fn eq(&self, other: &MenuButtonCommands) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MenuButtonCommands
impl PartialOrd for MenuButtonCommands
source§fn partial_cmp(&self, other: &MenuButtonCommands) -> Option<Ordering>
fn partial_cmp(&self, other: &MenuButtonCommands) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for MenuButtonCommands
impl Serialize for MenuButtonCommands
impl Eq for MenuButtonCommands
impl StructuralPartialEq for MenuButtonCommands
Auto Trait Implementations§
impl Freeze for MenuButtonCommands
impl RefUnwindSafe for MenuButtonCommands
impl Send for MenuButtonCommands
impl Sync for MenuButtonCommands
impl Unpin for MenuButtonCommands
impl UnwindSafe for MenuButtonCommands
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.