Struct tg_botapi::api::MenuButtonWebApp
source · pub struct MenuButtonWebApp {
pub text: String,
pub web_app: WebAppInfo,
}
Expand description
Represents a menu button, which launches a Web App.
Fields§
§text: String
Text on the button
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 answerWebAppQuery.
Implementations§
source§impl MenuButtonWebApp
impl MenuButtonWebApp
pub fn new(text: String, web_app: WebAppInfo) -> Self
Trait Implementations§
source§impl Clone for MenuButtonWebApp
impl Clone for MenuButtonWebApp
source§fn clone(&self) -> MenuButtonWebApp
fn clone(&self) -> MenuButtonWebApp
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 MenuButtonWebApp
impl Debug for MenuButtonWebApp
source§impl<'de> Deserialize<'de> for MenuButtonWebApp
impl<'de> Deserialize<'de> for MenuButtonWebApp
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<MenuButtonWebApp> for MenuButton
impl From<MenuButtonWebApp> for MenuButton
source§fn from(o: MenuButtonWebApp) -> Self
fn from(o: MenuButtonWebApp) -> Self
Converts to this type from the input type.