pub struct MenuButtonCommands {
pub tg_type: String,
}Expand description
Represents a menu button, which opens the bot’s list of commands.
Fields§
§tg_type: StringType 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 duplicate 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§impl PartialOrd for MenuButtonCommands
impl PartialOrd for MenuButtonCommands
Source§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§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.