pub struct BotMenuButton {
pub text: String,
pub url: String,
}
Expand description
Describes a button to be shown instead of bot commands menu button
Fields§
§text: String
Text of the button
url: String
URL to be passed to openWebApp
Trait Implementations§
Source§impl Clone for BotMenuButton
impl Clone for BotMenuButton
Source§fn clone(&self) -> BotMenuButton
fn clone(&self) -> BotMenuButton
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 BotMenuButton
impl Debug for BotMenuButton
Source§impl Default for BotMenuButton
impl Default for BotMenuButton
Source§fn default() -> BotMenuButton
fn default() -> BotMenuButton
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BotMenuButton
impl<'de> Deserialize<'de> for BotMenuButton
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 BotMenuButton
impl PartialEq for BotMenuButton
Source§impl Serialize for BotMenuButton
impl Serialize for BotMenuButton
impl StructuralPartialEq for BotMenuButton
Auto Trait Implementations§
impl Freeze for BotMenuButton
impl RefUnwindSafe for BotMenuButton
impl Send for BotMenuButton
impl Sync for BotMenuButton
impl Unpin for BotMenuButton
impl UnwindSafe for BotMenuButton
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