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
.
Alternatively, a t.me link to a Web App of the bot can be specified in the object instead of the Web App’s URL,
in which case the Web App will be opened as if the user pressed the link.
Implementations§
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
Source§impl PartialEq for MenuButtonWebApp
impl PartialEq for MenuButtonWebApp
Source§impl PartialOrd for MenuButtonWebApp
impl PartialOrd for MenuButtonWebApp
Source§impl Serialize for MenuButtonWebApp
impl Serialize for MenuButtonWebApp
impl StructuralPartialEq for MenuButtonWebApp
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