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 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 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
Auto Trait Implementations§
impl Freeze for MenuButtonWebApp
impl RefUnwindSafe for MenuButtonWebApp
impl Send for MenuButtonWebApp
impl Sync for MenuButtonWebApp
impl Unpin for MenuButtonWebApp
impl UnwindSafe for MenuButtonWebApp
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