Enum telexide::model::MenuButton
source · pub enum MenuButton {
Default,
Commands,
WebApp {
text: String,
web_app: WebAppInfo,
},
}
Expand description
This object describes the bot’s menu button in a private chat. If a menu button other than Default 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§
Default
Describes that no specific value for the menu button was set.
Commands
Represents a menu button, which opens the bot’s list of commands.
WebApp
Fields
§
web_app: WebAppInfo
Description of the Web App that will be launched when the user
presses the button. The Web App will be able to send an arbitrary
message on behalf of the user using the method
answer_web_app_query
.
Represents a menu button, which launches a Web App.
Trait Implementations§
source§impl Clone for MenuButton
impl Clone for MenuButton
source§fn clone(&self) -> MenuButton
fn clone(&self) -> MenuButton
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 MenuButton
impl Debug for MenuButton
source§impl<'de> Deserialize<'de> for MenuButton
impl<'de> Deserialize<'de> for MenuButton
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 PartialEq for MenuButton
impl PartialEq for MenuButton
source§fn eq(&self, other: &MenuButton) -> bool
fn eq(&self, other: &MenuButton) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MenuButton
impl Serialize for MenuButton
impl Eq for MenuButton
impl StructuralEq for MenuButton
impl StructuralPartialEq 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§
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> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
source§impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
impl<T> CloneableStorage for Twhere T: Any + Send + Sync + Clone,
fn clone_storage(&self) -> Box<dyn CloneableStorage>
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.